[fpc-pascal] Illeagal assignment to For Loop variable in Free pascal

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jun 17 13:17:02 CEST 2014

On 17 Jun 2014, at 13:05, mokashe.ram wrote:

> Could Any one help me for fixing below error in free pascal. as i am  
> tring
> to excute for loop in decemental order using 'DOWNTO' but its  
> thwoing error
> 'Illeagal assignment to For Loop variable 'Counter' as this is  
> possible in
> TP but in Free pascal its not working so is there any workaround for  
> this?

You should probably compile the code with -Mtp to switch FPC into  
(mostly) TP-compatible mode. There are more differences between TP and  
FPC that you'll encounter otherwise.


More information about the fpc-pascal mailing list