Use the ON SHUTDOWN command, too.
ON SHUTDOWN CLEAR EVENTS
>All of a sudden I'm getting a message "Cannot quit FoxPro" when I try to exit from an application I'm working on. The only way I can exit is to do a ctrl-alt-del and then end the task.
>
>What causes this kind of error message?
>Rich Murillo