Hi Eugene,
Check out:
http://www.ml-consult.demon.co.uk/foxst-07.htmhttp://fox.wikis.com/wc.dll?Wiki~AppShutDown~VFPfor some ideas.
Bruce
>Hi,
>I want to use my own error handling routine instead of standard VFP dialog. And I want to terminate application if user clicks the "Quit" button in my error message form. How can I end application correctly if I use stand-alone .exe application with top-level main form?
>I tried to use the following code:
>
> Close all
> Clear all
> Quit
>
>But it raises errors like "Cannot clear object in use", etc.
>What are the right steps to shut down application ?