![]() ![]() |
|
CLEARINPUTThe CLEARINPUT statement clears the type-ahead buffer to allow the next INPUT statement to force a response from the user.
COMMAND SYNTAXCLEARINPUT
SYNTAX ELEMENTSNone.
NOTESCLEARINPUT only clears the type-ahead buffer. It does not clear data stacked with the DATA statement. The CLEARINPUT statement is synonymous with INPUTCLEAR.
EXAMPLEIn the following example, the CLEARINPUT statement clears the terminal type-ahead buffer to provoke a response from the user to the prompt: CLEARINPUT PRINT "DO YOU WANT TO DELETE THIS FILE?(Y OR N)"; INPUT X,1
|