When the App is done, do CLEAR EVENTS. This causes the READ EVENTS waitstate to cease, and the program falls on through. In Runtime, it looks like this:
ON SHUTDOWN DO MyShutDown
DO FORM Logon
READ EVENTS
ON SHUTDOWN && Do nothing.
* Quit isn't required, unless you're running a real copy of VFP.
* Then you might not want to quit if it's you.
PROCEDURE MyShutDown
CLEAR EVENTS
>After my program ends, The Microsoft Visual FoxPro window is still there. How do I close it with my application. In fact How do I prevent it from coming up with my application. I have the following code to shut my application:
>
>&&main
>on shutdown do myshutdown
>do form logon
>read event
>
>
>
>&& myshutdown
>clos all
>clea all
>clear events
>quit
>
>
>If the window cannot be prevented from coming up, then is there a way to disable the minimize, maximize and close button? Help much appreciated
>
>
>thanks
>nick patel
Charlie