Garry Bettle wrote: > 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?
Garry Put a call to the method that writes the XLS in the .QueryUnload() method - this always gets called when the top right X is clicked. -- Cheers ============ Brian Abbott ============ _______________________________________________ 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.

