>When I use 'ON SHUTDOWN DO CloseProg' (where 'CloseProg' is a procedure in the main
>program) in an .EXE - VFP5.0, my error handler returns 'closeprog.prg cannot be found'. It
>appears as though the ON SHUTDOWN command destroys the environment and memory
>variables before executing the DO CloseProg. The problem does not exist in the interactive mode.
>Why?
Hi Lawrence,
The easiest solution is:
ON SHUTDOWN do MyProcedure IN MyProgram
Glenn