Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
QueryUnload and Release Thisform
Message
 
To
16/12/1999 20:38:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00305043
Message ID:
00305070
Views:
24
>If issuing a Release command/method will not trigger QueryUnload, what best option should I have to handle the 'save before quitting' routine.

QueryUnload fire if you RELEASE FormName or the user clicks the close button in the right side of teh title bar. If you issue Thisform.Release then QueryUnload does not fire.

How to handle that, well nothing says teh QueryUnload has to fire as an evetn, it can be cvalled too.

In my form class's Release method I have code that;
* Form Base class release
IF NOT Thisform.QueryUnload()
   NODEFAULT
   RETURN .F.
ENDIF
That covers all the bases.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform