SelectedColumn PowerScript function
Description
Obtains the number of the character column just after the
insertion point in a RichTextEdit control.
Controls
RichTextEdit controls
Syntax
1 |
<span>rtename</span>.<span>SelectedColumn</span> ( ) |
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit in which |
Return Values
Long. Returns the number of the character
just after the insertion point in rtename.
If an error occurs, SelectedColumn returns -1.
Usage
The insertion point can be at the beginning or end of the
selection. Therefore, SelectedColumn can return
the first character of the selection or the character just after
the selection, depending on the position of the insertion point.
Examples
If the insertion point is positioned before the fifth
character on line 8 of the RichTextEdit rte_Contact,
the following example sets ll_col to
5 and ll_line to 8:
1 |
long ll_col, ll_line |
1 |
ll_col = rte_Contact.<span>SelectedColumn</span>()<br>ll_line = rte_Contact.SelectedLine() |