Syntax
SelType Type
SelType()
Remarks
The SelType statement specifies how the insertion point or selected text is indicated in your document. For example, you can specify that selected text appear with a dotted underline instead of in reverse video, which may be preferable on some video displays.
SelType is more commonly used to position the insertion point at the beginning of the current selection. For this result, SelType has advantages over CharLeft because if there is no current selection, the insertion point does not move left.
Argument | Explanation |
Type | The type of highlight: 1 Solid insertion point (default) 2 Solid selection (default) 4 Dotted selection or insertion point (whichever is current) Note that the SelType() function never returns this value because 5 and 6 provide more specific information. 5 Dotted insertion point (visible in CopyText and MoveText modes) 6 Dotted selection (visible in CopyText and MoveText modes) |
The SelType() function returns a number corresponding to the type of highlight.
Example
This example selects the next occurrence of the word "background" and then cancels the selection, leaving the insertion point at the beginning of the word:
EditFind .Find = "background", .Direction = 0 If EditFindFound() Then SelType 1
See Also
Selection$(), SelInfo()