Hi all. This might not make sense but this is what I want to do.
In mainform:
   SDWForm1 := TSDWForm1.Create(nil);
  with SDWForm1 do
  try
    Result := ShowModal;
  finally
    Timer1.Enabled := true;
    Timer2.Enabled := true;
  end;

Later, in mainform close:
FreeandNil(SDWform1);

Notice, the form is not freed until mainform close. But in the help it says that:
'ShowModal returns value to which the ModalResult property is set when it closes
the form.'
Does this mean a typical closure eg SDWForm1 is set to nil or what?
I need a modal form, but want to retain the variables etc.
>From trial and error it appears the form still retains as I can still access the
variables and properties after the form has completed its showmodal, however,
that might just be remnant pointers in memory; I hope not!
Thanks,
Alistair+




_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to