Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
No stinkin Valid
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00452154
Message ID:
00452177
Views:
27
>The trees are so thick I can't see the forest. I want a clean close of a form without valid's firing if close button is clicked. Does anyone have a clean quick solution? I am making it way to complicated, I think. The valid events of the objects fire before any code in the button runs. Can I change that or is there a decent work around?
>
>Thanks, Chuck

Set the button's Cancel property to .T. - in all Valid events that are coded, only run the Valid code if LastKey=27 (Escape key). With the Cancel property set to .T., it will set LastKey to 27.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform