Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting lastkey value
Message
From
24/02/2004 21:55:17
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
 
 
To
24/02/2004 08:16:07
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00880213
Message ID:
00880575
Views:
21
There is a need to check which key the user was pushed to exit a wait state in my application (hard to tell the details here). Since such wait state can be terminated by a mouse click (and other means) without pushing a key, I'll set the lastkey value before the wait state for easy trapping.

The following code worked very well in most of my routines. However I found a problem under one or two circumstances (could be a bug of VFP) and therefore look for an API.

Clear Typeahead
Keyboard Chr(m.nKey)
=Inkey(0)


>Hi,
>Why you wan to set lastkey value?
>If you want to simulate pressing keyboard, you can try KEYBOARD "{}" command
Previous
Reply
Map
View

Click here to load this message in the networking platform