Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress event madness...
Message
From
07/10/2003 18:12:31
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
07/10/2003 18:06:48
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00835939
Message ID:
00835986
Views:
9
>>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.
>
For the purposes of testing, you could include a check using CHRSAW() in order to gauge whether there was really any chance you would be dropping characters in a "real-life" situation.
Previous
Reply
Map
View

Click here to load this message in the networking platform