Form1 is ancestor Form, and had this code in Form1.FormClose:
...
Action:= caFree;
Form1 := nil;
end;
Form2 is derived from Form1 (TForm2 = class(TForm1).
What should write instead of Form1 := nil in Form1.FormClose to be sure that (inherited) Form2 is also nil after Close?
...
Action:= caFree;
Form1 := nil;
end;
Form2 is derived from Form1 (TForm2 = class(TForm1).
What should write instead of Form1 := nil in Form1.FormClose to be sure that (inherited) Form2 is also nil after Close?