Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identifing the current control name
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00112518
Message ID:
00112565
Views:
29
>As I understand it, you want the user to be able to click cancel on your form
>without firing the validation routines for whatever field they are on. here
>you can take advantage of the fact that when clicking a button, the Button's
>When event fires before the current controls lostfocus.

I think I prefer the answer which is usually given here to this question. Set the button.Cancel property = .T. This will make it act as if the Escape key has been hit, so that you can check IF LASTKEY()=27 at the beginning of your validation code.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform