Obtains the number of the character column just after the insertion point in a RichTextEdit control.
RichTextEdit controls
rtename.SelectedColumn ( )
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit in which you want the number of the character after the insertion point |
Long. Returns the number of the character just after the insertion point in rtename. If an error occurs, SelectedColumn returns -1.
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.
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:
long ll_col, ll_line
ll_col = rte_Contact.SelectedColumn() ll_line = rte_Contact.SelectedLine()