Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bypass Validation when a Cancel button is pressed.
Message
De
08/11/1999 13:05:16
 
 
À
08/11/1999 12:22:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00288499
Message ID:
00288550
Vues:
27
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform