[fpc-devel] Ordinal expression expected issues

ik idokan at gmail.com
Sun May 21 17:38:30 CEST 2006


Hi,

I have the following code:

const MAXITEMS = 4;

type
  Tmyrec = record
     item : string;
     items : array [0..MAXITEMS] of stirng;
     moreitem : string;
  end;

...
for i := Low (myrec) to high (myrec) do
...

On ppcx64, the above code works very well, but on the same compiler
version (2.0.2) on 386, I'm getting the above error message.

Even if i'll do the for loop as follows:

for i := 0 to MAXITEMS do
...

The error message continues ...

What am I doing wrong ?

Thanks,

Ido



More information about the fpc-devel mailing list