Hi,
If you want shutdown in exe compiled program you should take 'clear events'
Sometimes, this 'on shutdown' command does not work so you'd better make separate program for shoutdown event.
And your destroy event needs 'clear event' or do your shoudown procedure.
-Code for 'myquit.prg'-
procedure myquit
on shutdown
clear events
_Your load event or start prg -
on shoutdown do path\myquit
-Your destroy or quit event code-
set proc to path\myquit addi
do myquit && or clear event
Stephen Chi
cmcpro@hanmail.net http://www.vfpworld.com
Best regards,
Stephen M. Chi