qbasic.hlp (Topic list)
Illegal in direct mode
The highlighted statement is valid only within a program
and cannot be used in the Immediate window. In general,
the following statements and metacommands cannot be used
in the Immediate window:
  ■ COMMON, CONST, DATA, DECLARE, DIM, OPTION, SHARED,
    STATIC, and TYPE
  ■ $DYNAMIC, $STATIC metacommands
  ■ DEF FN...END DEF, ELSE IF, END IF, END TYPE
    FUNCTION...END FUNCTION, REDIM, and SUB...END SUB
 
ERR code: 12