EditBoxText

Family: Input · 2 forms

What it does

EditBoxText takes index (an integer), and answers a string. That is the first of 2 forms.

Syntax

1
EditBoxText(index integer) → string
2
EditBoxText(index integer, str string)

Parameters

NameTypeIn forms
indexintegerall
strstring2

What each form returns

1EditBoxText(1)string
2EditBoxText(1, "hello")nothing

Example · generated

Form 1, the command hands back the id

DO  Print(EditBoxText(1))  Sync()LOOP

Form 2, you choose the id yourself

EditBoxText(1, "hello")DO  Sync()LOOP

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

95 commands in Input