ener.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
NEXT without FOR (ERR: 1)
■ 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.