>I have created a form set containing 2 forms, one contains a grid and the other contains detail information for a selected record. When I close one of the forms in the set, the other form will not close. After trying numerous scenerios, I have closable = .f. for both forms and I have an exit button which contains the following code:
> THISFORMSET.frmTimeLogGrid.RELEASE()
> THISFORM.RELEASE()
>The exit button is contained on the detail form frmTimeDetail. I understand that the form set method will run after each form method of the same name on each form, and it appears to do this.
>
>The Help, Manuals, and books I have not addressed my problem. Does anyone have any ideas? Thank you in advance for your help.
It's reliable to use FormSet.RemoveObject method to close its form(s). Also, you can ge in troubles closing a form if some its property holds reference to another object. All these 'object-type' properties should be set to .NULL. in form.destroy event.
Edward Pikman
Independent Consultant