Back

VB018

Empty procedure

Visual Basic 6
Warning
VB6

An empty body is either dead scaffolding or a handler that silently swallows the event it was wired to

an empty body is either dead scaffolding or a handler that silently swallows the event it was wired to.

Why this severity

an empty body is either dead scaffolding or a handler that silently swallows the event it was wired to.


Known false positives

deliberately empty event handlers kept to suppress default behaviour.

Remediation example

' Delete the stub, or document why the event must be swallowed

Reconnecting… Connection lost. Reload