Posted: 07:01am 07 Jan 2012 |
Copy link to clipboard |
 Print this post |
|
Make sure you identify which NEXT relates to which FOR and that they don't overlap; e.g.:
Good ===>
FOR i = 1 to 10
FOR j = 1 to 10
? i * j
NEXT j
NEXT i
Bad ==>
FOR i = 1 to 10
FOR j = 1 to 10
? i * j
NEXT
NEXT
Worse! ==>
FOR i = 1 to 10
FOR j = 1 to 10
? i * j
NEXT i
NEXT j
Cheers.... |