what i need to do is something like this:
procedure A(type_of_form);
var form: TForm;
begin
form := type_of_form.Create(application);
form.showmodal;
freeandnil(form);
end;
I did this for every dynamically created form:
form1 := TForm1.Create(application);
form1.showmodal;
freeandnil(form1);
What I will do inside procedure A is more complicated, but the problem is how to make the creation of the form somewhat common. Maybe something with @operator ... I really don't know.
Thanks for any suggestion!
source
share