Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lastkey() = 27 in combobox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00368892
Message ID:
00368912
Views:
21
Chris,

In your combo do your checking this way
IF LASTKEY() = 27
   KEYBOARD "{CTRL+A}" && Change LastKey()
   RETURN .T.
ENDIF
>Hi all,
>
>I am using If lastkey() = 27, return .T., endif in the combobox valid.
>This works fine, however if the user hits cancel or escape and then the add or edit button, they can then click any field on the form and bypass the valid of the field where the cursor is positioned. This seems to be because lastkey() still equals 27.
>
>How can I clear lastkey() ?
>
>TIA
>Chris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform