LINE INPUT Avoids INPUT Statement's "Redo from Start" Error (31161)
The information in this article applies to:
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q31161 SUMMARY
To avoid the "Redo from Start" error message encountered when
incorrect input is entered in response to an INPUT statement, use the
LINE INPUT statement instead. (The INPUT statement's "Redo from Start"
error message cannot be trapped or handled with the ON ERROR GOTO
statement.)
However, because LINE INPUT accepts all characters until it encounters
a carriage return, you must parse the input string yourself using
string manipulation (for example, MID$, INSTR) and type conversion
(for example, VAL).
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | KB31161 |
---|
|