>
>Have a validation condition that if it is TRUE then it's ok to leave the form normally.
>If it is FALSE then I want to return control back to the form and not exit.
>I've tried putting code in a number of methods and returning .F. but it always exits the form regardless.
>>
>On VFP is
IMPOSSIBLE>to to force the form ( Modeless ) to remain active when a customer executes to Click on another Form.
Fabio, with all due respect - he was asking about firing method code when ONE form is closed. ONE. Not TWO, and certainly not 'another' Form. >
>This needs to work if the user clicks on the close button in the top right corner of the form as well.
>>
>If you test
>
>Form.ReleaseType#0
>
>on Valid or LostFocus you can known if the Form is in QueryUnload process.
>Attention, if you use Form.Release() you have a Form release without Valid/LostFocus events.
But Nick threw him a solution, and it works. What are your thoughts?