Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validating
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00092104
Message ID:
00092114
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform