WR SET SELECTION
version 6.0
WR SET SELECTION (area; first; last)
Parameter | Type | Description | |
area | Longint | 4D Write area | |
first | Longint | First character | |
last | Longint | Last character |
Description
The command WR SET SELECTION selects the text in area described by the numbers first and last. Text is selected from first + 1 characters to last.
If first and last are equal, WR SET SELECTION places the insertion point after the character described by first. If last is greater than the length of the text in Area, WR SET SELECTION selects the text to the end of the document. If last is less than first, WR SET SELECTION does nothing.
Example
The following example selects the first ten characters in area:
WR SET SELECTION (area;0;10)
See Also