>Hi Shane,
>
>this works for me.
>
>On ypur main form add a line : ON SHUTDOWN DO shutdownproc.
>Make a .prg called shutdownproc.
>Contents :
>close tables all
>quit
ON SHUTDOWN does not apply to top-levels...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.