Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bypass Validation when a Cancel button is pressed.
Message
From
08/11/1999 13:05:16
 
 
To
08/11/1999 12:22:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00288499
Message ID:
00288550
Views:
30
>I believe the standard way to take care of this is to make the button cancel (its one of the properties) and then check the value of lastkey() in in your save procedure. Lastkey() will equal 27 if the cancel button was pressed.
>
>Please note: You should have a "Are you sure you want to cancel" because pressing the escape key may trigger the button!
>

I disagree. Have an "Are you sure?" dialog is personal preference. IMO, it isn't needed. If you read Alan Coopers books, you'll see he agrees with this.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform