Back

VB001

Missing Option Explicit

Visual Basic 6
Warning
VB6

Without Option Explicit a misspelled variable silently becomes a new Variant instead of a compile error

without Option Explicit a misspelled variable silently becomes a new Variant instead of a compile error.

Why this severity

without Option Explicit a misspelled variable silently becomes a new Variant instead of a compile error.


Known false positives

none expected; a module that genuinely relies on implicit declaration is the finding, not an exception to it.

Remediation example

Option Explicit

Dim Total As Long

Reconnecting… Connection lost. Reload