What it does
EditBoxCursorPosition takes index (an integer), and answers an integer. That is the first of 2 forms.
Syntax
1
EditBoxCursorPosition(index integer) → integer2
EditBoxCursorPosition(index integer, pos integer)Parameters
| Name | Type | In forms |
|---|---|---|
| index | integer | all |
| pos | integer | 2 |
What each form returns
| 1 | EditBoxCursorPosition(1) | integer |
| 2 | EditBoxCursorPosition(1, 1) | nothing |
Example · generated
Form 1, the command hands back the id
DO Print(EditBoxCursorPosition(1)) Sync()LOOPForm 2, you choose the id yourself
EditBoxCursorPosition(1, 1)DO Sync()LOOPEditBoxCursorPosition is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.