[fpc-devel] Re: Ordinal expression expected issues

Florian Klaempfl florian at freepascal.org
Sun May 21 18:30:25 CEST 2006


ik wrote:
> Replaying to myself.
> 
> i was Int64. (The original array was dynamic array, thats was the
> reason to use Int64).

making i an int64 makes no sense on 32 bit platforms even not for dyn.
arrays.

> 
> 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
>>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 




More information about the fpc-devel mailing list