Back

VB033

CallByName dispatch

Visual Basic 6
Warning
VB6

CallByName resolves a member from a string at runtime — no compile check, no rename safety, and user-influenced strings choose which method runs

CallByName resolves a member from a string at runtime — no compile check, no rename safety, and user-influenced strings choose which method runs.

Why this severity

CallByName resolves a member from a string at runtime — no compile check, no rename safety, and user-influenced strings choose which method runs.


Known false positives

closed plugin architectures where the string set is fixed.

Remediation example

Select Case action
    Case "save": obj.Save
End Select

Reconnecting… Connection lost. Reload