David,
Thanks! That finally did it.
Regards,
Don
>Don,
>
>
ON SHUTDOWN
>CLEAR EVENTS
>CLOSE ALL
>CLEAR ALL
>QUIT
>
>
>Should be enough to dump you all the way out.
>
>>How can I shutdown my application while there is a "stack" of functions built up? I have tried Clear Events and Quit, but each returns to the line following where either one is called and then the application really blows up. I'm trying to "gracefully" shut down my application once it has lost connection (ODBC) to the MSSQL 7SP4 server and the user does not want to attempt to reconnect any more. When the user clicks the No button, then the app should shutdown.