See ON SHUTDOWN in VFP Help. You can control whether or not the APP is shutdown by calling your own procedure in the ON SHUTDOWN command.
>Is there any way to assign trigger a procedure when someone closes the main foxpro window.
>
>I am using the window in my application and have just had to set closable to false, but would rather leave it available.
>
>Thanks,
>
>Mitch
Mark McCasland
Midlothian, TX USA