Hi Mark
Take a look at some of the ideas here:
http://fox.wikis.com/wc.dll?Wiki~AppShutDownHTH
Bruce
>I am runnig my program using an executable.
>In the Error method of my class I have the following:
>
>DODEFAULT(nError, cMethod, nLine)
>=MESSAGEBOX('Error')
>CLEAR EVENTS
>
>in my main program I have:
>
>....
>
>CLEAR ALL
>
>when en error occurs the program shows messagebox but does not stop running. What am I doing wrong?
>
>Thanks