CLEAR TYPEAHEAD

CLEAR TYPEAHEAD

Empty the keyboard buffer

Syntax

      CLEAR TYPEAHEAD

Description

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.

Examples

      .  This example empties the keyboard buffer before invoking
      DBEDIT(), guaranteeing that any pending keys will not be executed:
      CLEAR TYPEAHEAD
      DBEDIT()

Seealso

KEYBOARD, SET TYPEAHEAD

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.