What it does
CreateEditBox writes a value: it creates rather than reads. It takes index (an integer), and returns nothing. That is the first of 2 forms.
Syntax
1
CreateEditBox(index integer)2
CreateEditBox() → integerParameters
| Name | Type | In forms |
|---|---|---|
| index | integer | 1 |
What each form returns
| 1 | CreateEditBox(1) | nothing |
| 2 | editBox = CreateEditBox() | integer |
Example · generated
Form 1, you choose the id yourself
CreateEditBox(1)DO Sync()LOOPForm 2, the command hands back the id
editBox = CreateEditBox()DO Sync()LOOPCreateEditBox is called with values of the types its signature asks for. 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.