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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making close button at my application work

Status
Not open for further replies.

jerold

Programmer
Aug 30, 2000
52
PH
Please help me make the close button on my compiled/bulit executable application work.

When I click on it, it displays Cannot quit fox pro...

thank you
 
Is there a clear events anywhere in there?


Tom Gahagan
edrest@alltel.net

REST



If you get a chance to sit out or dance...

I hope you dance. L Wommack
 
Hey,
Now try this



ON SHUTDOWN do MyExit
&& do anything you want

proc MyExit
clea event
clea all
quit



Hope this helps

Jimmy
 
Sometimes ON SHUTDOWN can cause a loop of sorts so add one more line to that procedure...

proc MyExit
ON SHUTDOWN && Clears the event trap
clea event
clea all
quit

You might also consider adding this line to your main.prg

ON KEY LABEL ALT+F4 DO myExit




-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top