[fpc-pascal]TStringList index
Jesus Reyes
jesusrmx at yahoo.com.mx
Sun Mar 14 20:30:12 CET 2004
----- Original Message -----
From: Taj Morton <taj at wildgardenseed.com>
To: <fpc-pascal at lists.freepascal.org>
Sent: Sunday, March 14, 2004 1:04 PM
Subject: [fpc-pascal]TStringList index
> Hi all,
> This code has been driving me nuts for the past week.
> IDs:=TStringList.Create;
> for i:=0 to Datab.List_Field.Count-1 do
> begin
> Tmp:=TStringList(Datab.List_Field.items[i]);
> IDs.Strings[i]:=Tmp.Strings[0];
> Tmp.Free;
> end;
IDs.Strings[i] its not allocated, try
IDs.Add(Tmp.Strings[0]) instead
Regards
Jesus Reyes A.
More information about the fpc-pascal
mailing list