Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Validating
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00092104
Message ID:
00092114
Vues:
20
>Hello All,
>I have an application that runs with modeless screens thus allowing the user to select the menu at anytime. If the user selects the escape key, or the cancel command button, I check for changes
>and ask the user if they want to save these changes through a method using the getfldstate(-1) function. The question is, how do I know when the user has selected the menu and wants to go somewhere alse? How can I trap this so I can then call my method??
>
>Thanks
>
>Sandy

This functionality can be kept simpler. I used to have 'Save' button disable when user starts 'Edit' or 'Add New'. Each control participating in edit form reset cmdSave.Enabled to .T. from InteractiveChange event, therefore it's enough to check cmdSave.Enabled value to evaluate current situation.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform