John,
There isn't really an advantage. If anything there is a disadvantage as you
have to be careful in the Unload() because all of the objects on the form
have been released by this stage even though the data environment is still
open and available, as it is in the Destroy() and Unload() events until the
closetables fires. 

When using release method:
1 Release
2. Destroy      - removes contained objects
3. Unload
4. Environment CloseTables
5. Environment AfterCloseTables
6. Environment Destroy

When using the "x"
1. QueryUnload
2. Destroy       removes contained objects
3. Unload
4. Environment CloseTables
5. Environment AfterCloseTables
6. Environment Destroy
 
I guess you get used to coding in specific places

Dave Crozier

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of John Weller
Sent: 20 February 2008 16:41
To: [email protected]
Subject: RE: Final output code - where should it go?

PMFJI

What is the advantage of using the Unload method over the Destroy method?

John Weller
01380 723235
07976 393631 

> Brian,
> Sorry, I should have added your point which is quite correct. 
> 
> If you always want code to action you need the Unload event regardless of
> how you exit i.e release, the "x" in the top right as the events 
> are in the
> order QueryUnload() then Unload() when using the "X" and simply Unload()
> when using the Thisform.Release method.
> 
> I was just too hasty with the send key.
> 
> Dave Crozier
> 
> 



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to