CLEARINPUT, INPUTCLEAR |
![]() ![]() ![]() |
The CLEARINPUT statement clears any keyboard data that has been entered but not yet processed by INPUT or KEYIN() statements.
The synonym INPUTCLEAR may be used in place of CLEARINPUT.
Format
CLEARINPUT
CLEAR INPUT
Any type-ahead data is cleared. Data stored by the DATA statement is not affected.
Example
ERROR.LABEL: CLEARINPUT ABORT "A fatal error has occurred"
This program fragment could be used to ensure that data entered at the keyboard is cleared when aborting at some error condition. |