Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutdown an application from a modal form
Message
From
25/03/2003 13:26:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Shutdown an application from a modal form
Miscellaneous
Thread ID:
00769828
Message ID:
00769828
Views:
46
I would like to be able to shutdown my application from a modal form. I have tried various scenarios with no luck.

m.goapp.shutdown() will not close the application as long as a modal form is open.

I created a new method of appapplication that closes the forms before executing the shutdown(), well the forms close but the app doesnt shut down.

I dont really understand why, but i seem to hit this same roadblock every way I turn.

On the modal form I have a command button,
mybutton.click:
m.goapp.zShutdown

(I also tried thisform.oapp. )

where appapplication.zShutdown() is:
IF this.ostatemanager.closeallforms()
this.shutdown()
endif

This scenario does not shutdown the application. Oddly, this.shutdown() returns .t., just as if it did shutdown correctly. When I go to close after that, I get the dreaded "can not quit foxpro" error.
Next
Reply
Map
View

Click here to load this message in the networking platform