up previous next

read commands from a region in a file

SourceRegion FromLine: INT,FromChar: INT To ToLine: INT,ToChar: INT In S: STRING

This command executes all CoCoA commands in the specified region of the given file. It is not really intended for manual use, but is used by the CoCoA UI.
  SourceRegion FromLine,FromChar To ToLine,ToChar In "MyFile.cocoa5";
It is almost equivalent to copying the region into a temporary file, and then reading that file with the source command.

Line and char indexes start from 1; the region identified starts at the from line/character position and stops immediately before the to line/character position.
See Also