Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Quit Visual Fox Pro from Mainmenu

Status
Not open for further replies.

Renebear

Programmer
Mar 25, 2003
8
US
Hello guys! I believe this question have been raised earlier but I did not get the chance to get the solution.
There are cases where users would click the X mark to Close the mainmenu. What would be the best solution for the message "Cannot Quit Visual Fox Pro" to not appear anymore? Thanks for your solutions.
 
Renebear

In your main program create a ON SHUTSOWN function

At the begining on your main program

ON SHUTDOWN do myShutdown

At the bottom of your main program

FUNCTION myShutdown
CLEAR EVENTS
QUIT
ENDFUNC

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top