Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shutdown an application from a modal form
Message
De
25/03/2003 13:26:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Shutdown an application from a modal form
Divers
Thread ID:
00769828
Message ID:
00769828
Vues:
45
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
Fil
Voir

Click here to load this message in the networking platform