Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close the VFP desktop?
Message
De
13/12/1998 08:10:06
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
 
 
À
11/12/1998 12:17:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00166481
Message ID:
00166973
Vues:
16
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
Fil
Voir

Click here to load this message in the networking platform