|
|
back to boardCommon BoardBIG PROBLEM *PLEASE READ THE POST why doesnt the following piece of code work.It gets compilation error but with bp 7.0 it compiles fine.Any ideas? var IND : array [1..4] of byte; n, x1, y1, x2, y2, x3, y3, fx1, fx2, fx3 : byte; begin n := 10; for IND[1] := 1 to n - 2 do for IND[2] := IND[1] + 1 to n - 1 do for IND[3] := IND[2] + 1 to n do for IND[4] := 1 to 2 do begin end; end. Re: BIG PROBLEM *PLEASE READ THE POST Posted by LuoJi 17 Oct 2000 08:04 the array can not be used in "for". So you can't use IND[i] in "for" statements. |
|
|