Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Howto close Fox app when computer restarts???
Message
From
24/02/2008 16:06:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/02/2008 15:50:51
Chris Sund
Silhouette Solutions
Utah, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01295943
Message ID:
01295945
Views:
16
>All suggestions or advice is welcome,
>
>I have a systray app that runs all of the time. When the user restarts their computer I get a "Unable to Close Foxpro" message (paraphrased). Does anyone know how I can make this app close without any messages to the user?
>
>Thanks
>
>Chris

I suppose you get the same message when you press Alt-F4 when the application is active, or click on the "x" in the upper-right corner.

You should look at the ON SHUTDOWN command. This command should invoke whatever shutdown is required, which - I hope - you already have in some method or function.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform