Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress event madness...
Message
From
07/10/2003 18:06:48
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
07/10/2003 16:57:57
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00835939
Message ID:
00835983
Views:
8
>I'm not really sure how to do that accurately. KEYBOARD adds to the existing keyboard buffer which may already have additional characters ahead of it. Problematic.

I have yet to encounter a "real" situation where there is more than one character in the keyboard buffer (short of a user "leaning" on the keyboard).

I'd go with:
DO CASE
CASE THISFORM.lTranslating
   THISFORM.lTranslating = .F
CASE nKeyCode = 97
   THISFORM.lTranslating = .T.
   NODEFAULT
   KEYBOARD CHR( 98 ) CLEAR
etc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform