Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why on shutdown program is not called?
Message
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:
01474946
Vues:
56
>>>Hi everybody,
>>>
>>>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?
>>>
>>>Thanks in advance.
>>
>>
>>Maybe somewhere you cleared on shutdown?
>>
>>How about:
>>
>>do mainmenu.mpr
>>on shutdown do shutdownprogram
>>....
>>read events
>>WAIT WINDOW "Current shutdown: "+ON("shutdown")
>>
>
>This code (wait window) is never executed.
>
>Here is exactly what I have
>
> DO SomeManager_menu.mpr
>
>    ON SHUTDOWN DO mgr_click_shutdown
>    DO FORM Some_Toolbar			&&display toolbar
>    DO FORM BrowserForm NOREAD
>    DO FORM Data_Path NOREAD
>
>    USE IN SELECT('LOCKOUT')
>    oAppObj.PollLockout_Start()
>
>    READ EVENTS							&&this is where it all happens!
>    MESSAGEBOX("Current shutdown: "+ON("shutdown"))
>
>This messagebox is never displayed when I try to close the application with the close button.

The you have somewhere in your code:

QUIT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform