Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopping a process
Message
 
 
To
01/03/2011 13:49:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01029879
Message ID:
01502238
Views:
47
>(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
Previous
Reply
Map
View

Click here to load this message in the networking platform