Take a look at the ON SHUTDOWN command. ON SHUTDOWN QUIT should allow the application to exit any time a user clicks the close box or shuts down Windows. You can also specify a procedure to run when this happens.
>Hello,
>
>At the moment we are using VisualFoxPro 5.0a. We have created an application and we discoverd when you press the (x) close button on the main _SCREEN it will show the requester: 'Cannot quit VisualFoxPro'. We can disable the close button with _SCREEN.CLOSABLE = .F. but that's not what we want. How can we have the application quit when people press the (x) close button on the main _screen?
>
>Thanks in advance for your time and answer!