>>>>>>VFP 6.0
>>
ON SHUTDOWN QUIT
>>
>>>You need to be careful with a command like that... if you have anything open, and you don't do some cleanup, you might have problems.
>>>
>>>You may want to consider calling a cleanup routine instead.
>>
>>I see... I kinda know what you mean. However, I have one command in my File > Exit, QUIT. I open ALL 4 tables in the beginning of the application and it all remains open until the QUIT is fired. So far, all seems well? Are you saying I should CLOSE ALL, then QUIT (two command lines)?
>>
>>Chuck
>
>I suggest:
>
>
>ON SHUTDOWN MyShutDown()
>
>
>In the menu, invoke MyShutDown().
>
>In the corresponding toolbar, invoke MyShutDown().
>
>MyShutDown() may include
>
>CLOSE ALL
>QUIT
>
>
>Thus, you have one central place to manage your clean-up (in case you later find that you need to add additional commands).
>
>Hilmar.
Very good example... you may also want to restore the environment for the programmer. Show the toolbars, set (settings), etc.
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown