OPTION EXPLICIT
Description
OPTION EXPLICIT is used at script level, to force explicit declaration of all variables. When used, OPTION EXPLICIT must appear before any FUNCTION or SUB procedures, and any undeclared variables will cause an error to occur. Use DIM or REDIM to declare variables.
OPTION EXPLICIT can improve program performance significantly, and enforces good programming practices. It should be used whenever possible.
If you want to use STEP or TRACE, OPTION EXPLICIT must be the very first line of your program.
Example
OPTION EXPLICIT
DIM Teacher
Teacher = "Mr. Garrison"
Related Items
DIM, REDIM