How do i initialize a static array of records?
var
MyArrOfRec: array [1..2] of TMyRec = ?
In a less elegant, but more compact way:
type
TMyRec = record
Val1: integer;
Val2: string;
end;
var
MyArrOfRec : array [1..2] of TMyRec =((Val1:0;Val2:''),(Val1:0;Val2:''));
Obviously this solution is practical only for small static arrays.