You need an ON Shutdown routine. Somewhere in the beginning of your app, you would have a line of code like this:
On Shutdown Do GetOut
Now, you need to write a procedure that would have scope anywhere in your app. In your main calling program, you might have:
Procedure GetOut
*/ Do some checks to be sure we can exit the app
*/ If we can
*/ Quit
*/else
*/ Dialog the user
*/endif
Alternatively, you can reference a method in a public application class instances. The help section for On Shutdown is fairly complete...
EndProc
>I can't quit from my application by clicking the close button on the top right side (Closable property is setted true), my application will produce this following message : "Can not Quit Visual FoxPro", any body can help me please ..?, thanks in advance for any advice and suggestion ..
>
>Regards
>Winan
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only