Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get LastKey()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00854528
Message ID:
00854607
Views:
22
Hi,

>
I am trying to do a test if LastKey() = 13 is entered, but only on the current form. I want to ignore any keys pressed BEFORE I entered the form.

Is there a way of 'Clearing' any keys so that LastKey() would just recognise keys depressed after, say, the Init of the form ?
>

I'd try a different approach. Set the forms KeyPreview .T., and add a LastKey property to the form. In the Form.Keypress 'This.Lastkey = nKeyCode' and then just test 'ThisForm.LastKey'

HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform