<< Click to Display Table of Contents >>
Manual > Control Reference > Basics > Edit box control > Methods >
Select the string.
syntax
SetSel(
start,
selectRange
)
Parameters
start
Type:
Number
Starting position.
Number of characters to select. Specify -1 to select all.
Explanation
The set characters are selected.
If you want to select the text entered in the edit box when you click on it, you don't need to use SetSel.StartCursorThis can be done with properties.
Example
event OnMouseDown(button) { this.LostFocus(); this.SetSel(0, -1); this.SetFocus(); }
Supported
×
Script Action
Can be used in server script Ver2 actions
○
Browser script
Can be used in browser scripts
Calculation Expression Syntax
Can be used in expression syntax (e.g. bind syntax)