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.
$FORM, COMMON, and DECLARE must precede executable statements
■ A COMMON statement, DECLARE statement, or $FORM metacommand
  is misplaced. COMMON, DECLARE, and $FORM must appear before
  any executable statements. All Visual Basic statements are
  executable except the following:
 
              COMMON                   CONST
              DATA                     DECLARE
              DEFtype                  DIM (for static arrays)
              Metacommands             OPTION BASE
              OPTION EXPLICIT          REM
              SHARED                   STATIC
              TYPE...END TYPE
 
■ Possible solution:
 
  • Move executable statements below $FORM, COMMON, and
    DECLARE statements.
 
■ If you need additional help, move the cursor to a keyword
  and press F1 to open the Help window.