How to modify TList<record> value?

Posted by Astronavigator on Stack Overflow See other posts from Stack Overflow or by Astronavigator
Published on 2010-04-30T20:24:41Z Indexed on 2010/04/30 20:27 UTC
Read the original article Hit count: 268

Filed under:
|

How to modify TList < record > value ?

type TTest = record a,b,c:Integer end;
var List:TList<TTest>;
    A:TTest;
    P:Pointer;
....
....

List[10] := A;  <- OK
List[10].a:=1;  <- Here compiler error : Left side cannot be assined to
P:=@List[10];   <- Error: Variable requied

© Stack Overflow or respective owner

Related posts about delphi

Related posts about generics