Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exit
Message
 
À
17/07/2001 09:30:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Re: Exit
Divers
Thread ID:
00530998
Message ID:
00531698
Vues:
10
>>>>>>VFP 6.0
>>
ON SHUTDOWN QUIT
>>
>>>You need to be careful with a command like that... if you have anything open, and you don't do some cleanup, you might have problems.
>>>
>>>You may want to consider calling a cleanup routine instead.
>>
>>I see... I kinda know what you mean. However, I have one command in my File > Exit, QUIT. I open ALL 4 tables in the beginning of the application and it all remains open until the QUIT is fired. So far, all seems well? Are you saying I should CLOSE ALL, then QUIT (two command lines)?
>>
>>Chuck
>
>I suggest:
>
>
>ON SHUTDOWN MyShutDown()
>
>
>In the menu, invoke MyShutDown().
>
>In the corresponding toolbar, invoke MyShutDown().
>
>MyShutDown() may include
>
>CLOSE ALL
>QUIT && CANCEL is better, for the sake of the programmer
>
>
>Thus, you have one central place to manage your clean-up (in case you later find that you need to add additional commands).
>
>Hilmar.

Very good example... you may also want to restore the environment for the programmer. Show the toolbars, set (settings), etc.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform