HP 3000 Manuals

FLUSH INPUT [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

FLUSH INPUT 

The FLUSH INPUT statement empties the input buffer.  The input buffer is
a buffer where all the data that you have typed in is stored.  If an
INPUT statement reads three variables, and you have typed in six, the
last three remain in the input buffer.  If there is data remaining in the
input buffer and another INPUT statement is issued, the INPUT statement
will pick up that remaining data.  The FLUSH INPUT clears that buffer, so
that the next INPUT statement will not use that data.

Syntax 

FLUSH INPUT

Examples 

     100 INPUT A,B,C:  !Extra input for this statement, e.g., 1,2,3,4,5,6
     110 INPUT :D,E,F  !is used by this statement, i.e., D = 4, E = 5, F = 6
     120               !but
     200 INPUT A,B,C:  !extra input for this statement
     210 FLUSH INPUT   !is flushed from the buffer
     220 INPUT :D,E,F  !and not used by this statement.
     999 END



MPE/iX 5.0 Documentation