Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Release form from toolbar & Query Unload
Message
From
14/09/1998 06:41:54
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00135996
Message ID:
00136068
Views:
28
I have a NODEFAULT statement into my QueryUnload method. I tried something. I commented my NODEFAULT into the QueryUnload method. Now closing the form from the toolbar does not close the form when the QueryUnload returns .F. But when I close the form from the close box of the form, it releases the form even if the QueryUnload method returns .F.

I should mention you that I use the QueryUnload method to check if any changes are made to the data. If any, I then use the messagebox to ask the user if he or she wants to save, undo, or cancel. If the user chooses cancel then the form is not closing. Since I use this in severals forms, I've put the code in my baseclass for this type of form.

Thank's again
Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform