I need to have an unknown number of three different forms available at run time. I have created the three forms and set them as "Available Forms" named "frmOne", "frmTwo" and "frmThree" There could be five of frmOne, seven of frmTwo etc.
I have defined a record
type
TFrmRec = record
ID : Integer;
Frm : TForm;
end;
var
FrmArr : Array of TFrmRec;
begin
That compiles OK, but, how do I assign and use the forms as needed at run time? So far I have...
var
i : Integer;
Indx : Integer;
begin
Indx:=High(FrmArr)+1;
FrmArr[Indx].ID:=9; // Or whatever is passed to here
FrmArr[Indx].Frm...
But not sure where to go from here and how to "Show" the Forms.
[EDIT]
(Ooops, that was "ShowModal" but I need "Show" as there can be several versions of the one form visible but with their own data.
[/EDIT]
I did some searching but can't find anything with Forms in an Array.