Back

VB021

Magic number

Visual Basic 6
Warning
VB6

Unexplained numeric literals; the Const that fixes the finding is also the documentation the number never had

unexplained numeric literals; the Const that fixes the finding is also the documentation the number never had.

Why this severity

unexplained numeric literals; the Const that fixes the finding is also the documentation the number never had.


Known false positives

well-known constants in context (ports, HTTP codes); Const, line numbers, Declare signatures and date literals are already exempt.

Remediation example

Const MAX_RETRIES As Long = 25

Reconnecting… Connection lost. Reload