VB004
Implicit Variant declaration
Visual Basic 6
Warning
VB6
Variants defer type errors to runtime; Dim a, b As Long types only b and makes a a Variant without any warning
Variants defer type errors to runtime; Dim a, b As Long types only b and makes a a Variant without any warning.
Why this severity
Variants defer type errors to runtime; Dim a, b As Long types only b and makes a a Variant without any warning.
Known false positives
code that deliberately uses Variants for COM interop.
Remediation example
Dim a As Long, b As Long