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.
WEND without WHILE (ERR: 30)
■ Each WEND statement must have a matching WHILE statement.
  For example:
 
              WHILE i% <> 0
                   PRINT i%
                   i% = (i% - 1)
                   WHILE x% <> 0
                        PRINT x%
                        x% = (x% - 1)
                   WEND
              WEND
 
■ Verify that other control structures within the WHILE...WEND
  structure are correctly matched. For example, an IF without
  a matching ENDIF inside the WHILE...WEND structure generates
  this error.
 
■ The DO...LOOP statement provides a more powerful and
  flexible loop control structure than WHILE...WEND.
 
■ If you need additional help, move the cursor to a keyword
  and press F1 to open the Help window.