Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement