General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only