Progress
Language Reference


INPUT CLEAR Statement

Interfaces
OS
SpeedScript
All
All
No

Clears any keystrokes buffered from the keyboard, discarding any type-ahead characters. The INPUT CLEAR statement is useful when you want to make sure Progress clears out extra characters in the input statement that could follow a field entry that is too long.

SYNTAX

INPUT CLEAR 

EXAMPLE

This menu procedure tests each key the user presses. If the user presses a key other than 1, 2, or 3, Progress clears the keyboard buffer and displays a message.

r-inclr.p
DISPLAY "     Please choose     " SKIP
  " 1  Run order entry    " SKIP
  " 2  Run receivables    " SKIP
  " 3  Exit               " WITH CENTERED FRAME menu.
REPEAT:
  READKEY.
  IF LASTKEY = KEYCODE("1") THEN RUN ordentry.
  ELSE
  IF LASTKEY = KEYCODE("2") THEN RUN receive.
  ELSE
  IF LASTKEY = KEYCODE("3") THEN QUIT.
  ELSE DO:
    MESSAGE "Sorry, that is not a valid choice".
    INPUT CLEAR.
  END.
END. 

NOTES

SEE ALSO

EDITING Phrase


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095