Back

VB023

Select Case without Case Else

Visual Basic 6
Info
VB6

A Select Case with no Case Else does nothing for unexpected values — and the unexpected value is usually the bug report

a Select Case with no Case Else does nothing for unexpected values — and the unexpected value is usually the bug report.

Why this severity

a Select Case with no Case Else does nothing for unexpected values — and the unexpected value is usually the bug report.


Known false positives

enums that are genuinely closed today can still grow tomorrow.

Remediation example

Case Else
    Err.Raise 5, , "Unexpected status: " & status

Reconnecting… Connection lost. Reload