Examples: Option Declare statement

' Turn off implicit declaration of variables.
Option Declare
Dim y As Integer
y% = 10            ' No error
x = 20             ' Compiler error (x has not been declared)
ReDim simAry(2, 2) ' No error