in BASIC ROM:
|List of all BASIC keywords|
Type: Command General Programming-Syntax: INPUT ["<text/string>";]<Variable>[,<Variable>...]
The BASIC-command INPUT is used for data input in BASIC-programs. After the viewed text, which can be drop, appears an interrogation mark (?). Behind waits the blinking cursor for the input data. The data will be stored into variable (type: string, floating point or integer) after pushing the <RETURN>-key. When after entry viewed more interrogation marks (??), it must be more data inputed. Optionally can be instructed the text for more data input. When you know that, more datas can be entered with commas (,). By entering more than requested data the BASIC-error "?EXTRA IGNORED" occur. The overkill don't stored in the variables. By pushing <RETURN> without data entry the contain of the variables are the same.
By entering the wrong data (for example by input chars or strings in a integer variable) appears the BASIC-error "?REDO FROM START". That means, that the data must be inputed over again. When general used string variables these BASIC-error can be avoided. By using INPUT directly the BASIC-error "?ILLEGAL DIRECT ERROR" is viewed.
10 INPUT "First input, please "; A$ 20 INPUT "Only numbers (2-times) "; A1, A2% 40 PRINT: PRINT "Your input was: " A$, A1, A2% 50 PRINT: PRINT "Once again 3 numbers "; 60 INPUT A1%, B, Z 70 PRINT: PRINT "At last 3 inputs "; 80 INPUT A$, B$, C$ 90 PRINT: PRINT "Your last input was: "; A1%, B, Z, A%, B$, C$
POKE 19,1will disable printing the "?" and <RETURN>, until reset with
POKE 19,0. In this state, it will give a bad data error rather than Redo from start.