>To All,
>
>I have a program exit routine that closes files, ends the event read, and terminates the application gracefully. How can I run that routine when someone clicks in the VFP desktop screen X button? Unless I stop reading events, FoxPro reports that it cannot quit.
An ON SHUTDOWN procedure that does a CLEAR EVENTS should help.
>
>Thanks,
>Allen