> On Nov 24, 2019, at 3:57 AM, Sven Barth via fpc-pascal > <fpc-pascal@lists.freepascal.org> wrote: > > What you're looking for is the Count property. Setting it is supported by the > untyped lists in Classes, the generic ones in FGL as well as those in > Generics.Collections. > > === code begin === > > list := TList.Create; > list.Count := 10; > list[5] := someItem;
I was trying that but with capacity and not count. Thanks. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal