Back

VB012

Implicit Variant parameter

Visual Basic 6
Warning
VB6

An untyped parameter is a Variant and ByRef by default, so the callee can silently reassign the caller's variable

an untyped parameter is a Variant and ByRef by default, so the callee can silently reassign the caller's variable.

Why this severity

an untyped parameter is a Variant and ByRef by default, so the callee can silently reassign the caller's variable.


Known false positives

ParamArray is exempt by design — the language requires it to be Variant.

Remediation example

Sub Process(ByVal order As Order, ByVal count As Long)

Reconnecting… Connection lost. Reload