Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to close a form
Message
 
To
03/11/1998 12:44:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00154012
Message ID:
00154200
Views:
24
As David says, QueryUnload is called by the 'X' by the ControlBox. You should consider putting all of your form validation (asking if user wants to save uncommitted changes, etc.) in the QueryUnload and calling this from your Exit button with
if thisform.queryunload()
   thisform.release()
endif
>I've been closing forms in VFP5/6 by calling the form's .Release() method. In there I call the default (DODEFAULT) then do any other cleanup that may be required. I was wondering if the .Release() is really the most efficient way to go? Does this, indeed, take care of all the tables, datasessions, etc.? Should I call the .QueryUnLoad()? It doesn't seem to make much difference if I do or not...
>
>Thanks
>
>RicU
>RicU@att.net
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform