EditBox.SetSelection Method
| Explanation | Set the cursor position and selection range. If you have a run-time focus, the specifications take effect immediately. Extension after Ver.5.0.2 If there is no focus at the time of execution, it will be in the execution reserved state and the specification will be reflected when the focus is acquired. Added since Ver.5.0.0 Not supported in Mobile, AI | |
| Call format | EditBox1.SetSelection( pos [, length ] ) | |
| Return value | None | |
| Arguments | integer pos | Specify the cursor position starting from 0. It will be corrected within the range, when specified outside the range. For non-UString, if a byte boundary of a double-byte character is specified, it is corrected to the previous byte. |
| integer length | Specify the selected character length. If omitted, it will be 0 (no selection). Special specifications | |
| Exception | None | |
| Example of use | | |
| Related item | GetSelection method | |