Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping a process
Message
 
 
À
01/03/2011 13:49:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01029879
Message ID:
01502238
Vues:
48
>(1) In the beginning of CleanUp you reset the On ShutDown
>If you return then CleanUp is not longer the on('shutdown')
>
>So, returning from CleanUp without touching the On Shutdown prevents quiting foxpro
>
>(2) I see a Clear Events - If you are in runtime - the code after that will not be executed
>
>I have something like this
>
>&& my proc  similar to cleanup
>
>if( not ok to shutdown )
>    return
>endif
>
>&& here it's ok to shutdown
>on shutdown
>
>if( runtime )
>    clear events
>else
>  && some cleanup, then
>   quit
>endif
>
>
>The runtime after read events
>
>&& main
>...
>on shutdown do cleanup
>
>read events
>on shutdown && in case from Clear events of a form
>  && some cleanup, then
>quit
>
>
>ps: if you set your screen.controlbox on, you can debug it
>
Re ps - Yes, I did a while ago.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform