Link Search Menu Expand Document

EditBox.GetSelection Method

Explanation Gets the current cursor position and selection range.

Added since Ver.5.0.0
Not supported in Mobile, AI
Call format var n = EditBox1.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
EditBox1.GetSelection();
    
Related item SetSelection method