Link Search Menu Expand Document

TextBox.GetSelection Method

Explanation Gets the current cursor position and selection.
Added since Ver.5.0.0
Not supported in Mobile, AI
Call format var n = TextBox1.GetSelection( [ lengthMode ] )
Return value Cursor position or number of selected bytes
Arguments boolean lengthMode Value to get
$ FALSE: Get the cursor position
$ TRUE: Gets the number of selected bytes (number of characters for UString)
The default is $ FALSE.
Exception None
Example of use
    TextBox1.GetSelection();
    
Related item SetSelection method