Information générale
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement