yes, you should.
edsynergy <[EMAIL PROTECTED]> wrote: 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.
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
[Non-text portions of this message have been removed]