[futurebasic] Re: [FB] Life After Quit

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2010 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Thu, 10 Jun 2010 09:48:53 +1200
Bernie wrote:

>>> I want to delete a temporary file when I quit an application.
>>> How can I do this in my below example :
>>> '----------------------------------------------
>>> < code snip >
>>> '----------------------------------------------
>> 
>> I wonder if it can be done in a CE kEventAppTerminated handler?
> 
> Or by intercepting kHICommandQuit in a command process handler installed on the application (see FBShell example).


> ON MENU FN MenuDialog
> FN BuildWindow
> FN BuildMenu
> 
> RunApplicationEventLoop()

...code placed here is executed just before quitting...
end

Robert P.