Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This is probably impossible, but...
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00279088
Message ID:
00279278
Views:
17
>QueryUnload fires only under the following circumstances: CLEAR WINDOWS, RELEASE WINDOWS, or QUIT commands are encounter or the user selects the close option from the control menu or the use clicks the close (X) box. It doesn't fire when ThisForm.Release is issued. That's why any issuing of ThisForm.Release often is done in this fashion:
IF ThisForm.QueryUnload()
>  ThisForm.Release
>ENDIF
There are quite a few ways of handling form closure, it seems. I usually just avoid code in the Release() method, personally, that's one way. Also, if you do want code in the Release, you can have a "redundant" Release call in the Queryunload:
IF some_condition
  NODEFAULT
   ...
ELSE  
  ThisForm.Release  && causes no trouble, but fires Release
ENDIF
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform