Ok ,
I have a main form and several sub forms that get called from the main
form

In the public of the main form I could have something like this
edit1:Tedit;

In my subform I have a Tedit on the form

In my subform I do this mainform.edit1 := subform Tedit; 

When I close the subform what happens to edit1 on the mainform ?
Is it automatically unassigned, if not does it get cleaned up when the
main form closes.

Should I in the onclose event of the subform do mainform.edit1 := nil;

All advice welcome

Best wishes Ed.




Reply via email to