■ Each NEXT statement must have a matching FOR statement.
For example:
FOR i% = 1 TO 10
PRINT i%
FOR f% = 1 to 10
PRINT f%
NEXT f%
NEXT i%
■ Possible solution:
• Match up all FOR...NEXT pairs within each control
structure; insert FOR or NEXT items as required.
■ If you need additional help, move the cursor to a keyword
and press F1 to open the Help window.