Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear Lastkey()?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00049514
Message ID:
00049523
Views:
74
>>Is there a way to programmatically clear or change the value in LASTKEY? I'm trying to do this using KEYBOARD, but I'm on a ReadOnly grid and every parameter I enter (KEYBOARD etc.) causes a beep and readonly message. CLEAR TYPEAHEAD clears the buffer , but not the LASTKEY value...any ideas?
>
>I guess you could create custom property nLastkey, set it in Form.KeyPress event (This.nLastkey=nKeycode) and use it and reset to 0 whenever you want.

Excellent idea. I just had to set KeyPreview = .T. and it works fine. Thanks Edward.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform