Topic: Adding TRecordType in TList <TRecordType>
There is a type:
TRecordType = A, B: integer end;
Also it is necessary to create the list, adding this data:
TRecList = TList <TRecordType>; ... var rt: TRecordType; Lst: TRecList; begin Lst: = TRecList. Create; for i: = 0 to 10 begin rt.a: = i * 1; rt.b: = i * 2; Lst. Add (rt); end; end
And here I understand that it after all a jamb - each record refers to one and too a storage place. Or all the same there is a copying of new value?