What it does
EditBoxText takes index (an integer), and answers a string. That is the first of 2 forms.
Syntax
1
EditBoxText(index integer) → string2
EditBoxText(index integer, str string)Parameters
| Name | Type | In forms |
|---|---|---|
| index | integer | all |
| str | string | 2 |
What each form returns
| 1 | EditBoxText(1) | string |
| 2 | EditBoxText(1, "hello") | nothing |
Example · generated
Form 1, the command hands back the id
DO Print(EditBoxText(1)) Sync()LOOPForm 2, you choose the id yourself
EditBoxText(1, "hello")DO Sync()LOOPEditBoxText 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.