>>Good afternoon all!
>>
>>I have a problem that I'm hoping someone will be able to clear up. I've created an executable that I'm not able to exit. I just get a dialogue box with the message "Cannot Quit Visual Fox Pro" with an o.k. button. The only way out is to End Task.
>
>ON SHUTDOWN DO shtdwn IN MAIN
>
>FUNCTION shtdwn
>ON ERROR && reset error trapping
>ON SHUTDOWN && reset shutdown trapping
>SET CLASSLIB TO && release all class libraries
>SET PATH TO && reset the search path
>CLEAR ALL && release all variables, tables, etc.
>CLOSE ALL && close all tables, forms, databases, etc.
>QUIT
>
>
>HTH
You still need a CLEAR EVENTS. The "Cannot Quit" message comes from issuing quit or clicking the "x" while in an event loop. IMHO, most of the commands above are not necessary because quitting the app takes care of them automatically.
Erik Moore
Clientelligence