CreateEditBox

Family: Input · 2 forms

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() → integer

Parameters

NameTypeIn forms
indexinteger1

What each form returns

1CreateEditBox(1)nothing
2editBox = CreateEditBox()integer

Example · generated

Form 1, you choose the id yourself

CreateEditBox(1)DO  Sync()LOOP

Form 2, the command hands back the id

editBox = CreateEditBox()DO  Sync()LOOP

CreateEditBox 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.

95 commands in Input