copyBlock

Returns a copy of the given selection.

Syntax
aSourceFile copyBlock (aSection, startLine, startColumn, endLine, endColumn)
Parameters
aSection - Integer
The section containing the selection.
startLine - Integer
The line number of the beginning of the selection.
startColumn - Integer
The column of the beginning of the selection.
endLine - Integer
The line number of the end of the selection.
endColumn - Integer
The column of the end of the selection.
Return Value
A copy of the selection as a TextBlock object.
Remarks

The start and end position does not have to be ordered. If the start position is after the end, the positions are switched automatically.

The text positions are automatically fixed to be within bounds.