SetSelRange

Syntax

SetSelRange Pos1, Pos2

Remarks

Selects the characters between character position Pos1 and character position Pos2. The character position at the start of the document is 0 (zero), the position after the first character is 1, the position after the second character is 2, and so on. All characters, including nonprinting characters, are counted. Hidden characters are counted even if they are not displayed. Note that the document does not scroll even if the selected characters are not visible in the document window.

Example

This example selects the first 20 characters in the document:


SetSelRange 0, 20

See Also

GetSelEndPos(), GetSelStartPos(), GetText$()