Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ESC Key.......
Message
From
21/10/1999 12:16:24
 
 
To
21/10/1999 11:45:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00279382
Message ID:
00279420
Views:
10
>How do i clear the keyboard Buffer.
>the following commands do not function :
> Clear TYPEAHEAD
> Keyboard '{27}' Clear && 27 - Esc key
>
>Please help.Want to erase 27 from buffer.....

You don't state your situation or reason for this, but can't you just test in the KeyPress event for Esc and take appropriate action, such as NODEFAULT?
IF nKeyCode = 27  && Esc
    NODEFAULT
    && More code
ENDIF
Or in some other scenario could you test for LASTKEY() and take action?
IF LASTKEY() = 27  && Esc
    && Code
ENDIF
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform