Terry,
Return .F. from QueryUnload() if the form can't be closed, and don't release the form if it does return .f.
if ( _screen.Forms[i].QueryUnload() )
_screen.Forms[i].Release()
else
_screen.Forms[i].Activate()
endif
>Is there a good way to stop the shutdown process from the routine called by 'On Shutdown'? I would like to emulate the "Save Changes?" "Yes, No, Cancel" like the big boys do. I am using query unload to find the dirty buffers and that works ok, but I can't figure out the "cancel" part to return to the app. Thanx in advance.