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:16:20
 
 
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:
01295949
Views:
13
>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?

Assuming VFP9, you can hook Windows shutdown events with BINDEVENT() - check the "What's New" section in help, "Windows Message Event Handling".

I seem to recall reading about a SYS() or SET command or function that was new or enhanced to handle your situation - detect system shutdown for VFP "services", but I can't find the reference.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform