[fpc-pascal]Why TStrings.Add can't work?

Christophe Espern cespern at free.fr
Fri Nov 1 18:19:13 CET 2002


Hello

>   slist:=TStrings.Create;
Do not create a TStrings directly, it's an abstract class. Use a descendant
instead (ie : TStringlist)

>     s:=sl.Names[i];
Replace this line by
 s:=s[i];

Cheers,

Christophe







More information about the fpc-pascal mailing list