Empty the keyboard buffer
CLEAR TYPEAHEAD is a keyboard command that clears all pending keys from the Clipper keyboard buffer. This is useful in user interface procedures or user-defined functions to guarantee that keys processed from the keyboard buffer are appropriate to the current activity and not pending from a previous activity. User functions called by ACHOICE() and DBEDIT() are especially sensitive to such keys.
Note that both the SET TYPEAHEAD and KEYBOARD commands also clear the keyboard buffer.
. This example empties the keyboard buffer before invoking DBEDIT(), guaranteeing that any pending keys will not be executed: CLEAR TYPEAHEAD DBEDIT()
KEYBOARD, SET TYPEAHEAD