[fpc-pascal] Illeagal assignment to For Loop variable in Free pascal
mokashe.ram
mokashe.ram at gmail.com
Tue Jun 17 13:05:21 CEST 2014
Hi,
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?
FOR counter := 8 DOWNTO 1 DO
IF filename[counter] = ' 'THEN
DELETE(filename,counter,1)
ELSE
counter := 1;
Thanks
Sudarshan
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Illeagal-assignment-to-For-Loop-variable-in-Free-pascal-tp5719603.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list