Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to really cancel a form?
Message
 
 
To
21/04/2005 12:35:43
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007086
Message ID:
01007146
Views:
21
Mike,

Another way to deal with this issue on a global basis, is to move your validation out of the individual controls and into the Save routine where you validate everything at once. This gives you the additional benefit that the users can work in an field order that they need to, not in a field order that your app forces them to use.

>I have a form with several controls on it. There is a "Cancel" button that I want to be able to select at anytime to close the form and discard all changes. The problem is that if a control has focus and has valid code in it that prevents it from losing focus, the "Cancel" button is useless.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform