>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")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.