General information
Title:
Shutdown an application from a modal form
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
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