I have a record defined like this:
TRec = record
S: string;
I: Integer;
end;
I can initialize a constant of this record type like this:
const
Rec: TRec = (S:'Test'; I:123);
Now I have a function that takes an open array of this record type:
function Test(AParams: array of TRec);
Can I call this function using similar syntax as the constant declaration?
Test([(S:'S1'; I:1), (S:'S2'; I:2)]);
This does not work. Should I use something else?