Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-08

Using a TLIst or TStringList in a for loop...

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Shane Miller
When I try to use
var
Something : TList;
begin
for I := 0 to Something.Count do
...
..

I get an error compiling
Error: Array properties aren't allowed at this point.

Obviously, this is incorrect. Can the FPC folks take a look at this please...

Shane

Reply by email

Peter Vreman
to Shane Miller
you wrote 14 lines
When I try to use var Something : TList; begin for I := 0 to Something.Count do ... .. I get an error compiling Error: Array properties aren't allowed at this point. Obviously, this is incorrect. Can the FPC folks take a look at this please...

Please give complete code example, it may use lcl units ofcourse. But i should be able to copy&paste&compile

Reply by email