[fpc-pascal] Known issue with 1.9.4 [2004/05/30] for i386 on Linux?

Marcel Martin mm10 at ellipsa.net
Wed Sep 29 22:30:36 CEST 2004


Alan Mead a écrit :
> 
> I don't know if this is really a bug or whether it's known... I have
> this line of code:
> 
>   while ( (i<=Length(fmt)) and (NOT fmt[i] IN ['0'..'9']) ) do
> inc(i);
> 
> It compiles fine but I get a RTE:
> 
> An unhandled exception occurred at 0x0807B180 :
> EVariantError : Invalid variant operation
>   $0807B180
>   $BFFFF980

Try with
  while ( (i<=Length(fmt)) and (NOT (fmt[i] IN ['0'..'9'])) ) do
                                    ^                    ^
                                    (                    )
i.e., with two parenthesis more.

-- 
mm
http://www.ellipsa.net/
mm at ellipsa.no.sp.am.net  ( suppress no.sp.am. )




More information about the fpc-pascal mailing list