Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why on shutdown program is not called?
Message
 
 
À
03/08/2010 10:05:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01474941
Message ID:
01474958
Vues:
38
>Naomi,
>
>I have these commands in the main program of the application:
>
>do mainmenu.mpr
>on shutdown do shutdownprogram
>
>read events
>
>I put assert command into shutdown program. However, it's not being called when I try to close the application in IDE by clicking on the x of the screen.
>What is it called then and why this program is not called?

>
>I usually do a VerifyQuit() trap on at least two spots: In a menu option, and putting the same code in the QueryUnload() event (this event fires when one tries to close a form using the X button.)

This application is run in _screen. For now I'm trying to determine what is called when I click on x in the screen. It looks like exactly the same code which is called from the Exit button on the toolbar, but why it's called and not the on shutdown procedure? Looking into this problem now.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform