Garry, Definitely QueryUnload as this is ALLWAYS called however you unload the form.
Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garry Bettle Sent: 20 February 2008 12:24 To: [email protected] Subject: Final output code - where should it go? Howdy all, I have a bit of code that outputs some summary information to a XLS file. The normal way that this happens, is when a response from an API call indicates that a market is closed. What I'd like to do is shift this logic somewhat, so that if the user closes the form - click the top right X - it writes the XLS file, in addition to if the market is closed. Should I just populate the Destroy method on the form, and code the market is closed method to just call Destroy? The data going to Excel is a combination of cursor and table, so would Destory be the right method to use? Or, should I put it in the UnLoad method? Cheers, Garry --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [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.

