Posted: 10:46pm 13 Jul 2016 |
Copy link to clipboard |
 Print this post |
|
Can someone please check this:
On a 64pinner with v5.2 (as on Geoff's website) I am getting something strange.
Trying to embed three For....Next loops as follows
FOR R = 0 TO 3
FOR G = 0 TO 3
FOR B = 0 TO 3
.......
NEXT B
NEXT G
NEXT R
But I get the following Error Message: FOR with misplaced = or TO
If I comment out the FOR R and NEXT R lines of code it is fine BUT I ultimately need the R loop too. i.e. as follows:
'FOR R = 0 TO 3
FOR G = 0 TO 3
FOR B = 0 TO 3
.......
NEXT B
NEXT G
'NEXT R
THEN if I add a fourth 'outer FOR NEXT loop (with the previous still commented out) but effectively have what I needed in the beginning, it all works fine! i.e.
FOR R = 0 TO 3
'FOR R = 0 TO 3
FOR G = 0 TO 3
FOR B = 0 TO 3
.......
NEXT B
NEXT G
'NEXT R
NEXT R
Is this a bug, or am I doing something silly??
By the way, it doesn't matter what variable name I use for the first For/Next Loop (i.e. 'R' above), or what value I go up to (i.e. 3 above). |