[fpc-devel] Re: Ordinal expression expected issues
ik
idokan at gmail.com
Sun May 21 18:21:54 CEST 2006
Replaying to myself.
i was Int64. (The original array was dynamic array, thats was the
reason to use Int64).
Ido
On 5/21/06, ik <idokan at gmail.com> wrote:
> 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