Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Close the VFP desktop?
Message
From
13/12/1998 08:10:06
 
 
To
11/12/1998 12:17:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00166481
Message ID:
00166973
Views:
22
Hi James,

I found that out right away. I got into an endless loop when trying to close the FoxPro window. Making ON SHUTDOWN my first line of code solved it. Also, if you leave the program running and then try to shut down Windows, the FoxPro shutdown routine will trigger at that time, forcing the user to terminate the program properly. I use a messagebox with a Yes or No prompt. Selecting No will stop Windows from shutting down because the app continues to run. I like that feature!

Thanks to all,

Allen


>>>>Hi Allen
>>>>
>>>>In addition to what James and Ed suggested make the first line of your exit routine ON SHUTDOWN.
>>>>
>>>Now that's a good idea. Prevents recursions -- at least I presume that's the purpose???
>>
>>That's the main reason for the EXE. Also, to prevent leftover ON SHUTDOWN's when testing in VFP.
>
>Every once in a while I get strange behavior on shutdown, I bet that little trick will solve the problem,
>
>thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform