VB032
Case-insensitive compare via UCase
Visual Basic 6
Info
VB6
UCase(a) = UCase(b) allocates two strings per comparison and mishandles locale-specific casing
UCase(a) = UCase(b) allocates two strings per comparison and mishandles locale-specific casing.
Why this severity
UCase(a) = UCase(b) allocates two strings per comparison and mishandles locale-specific casing.
Known false positives
lines with two conversions where the = is an unrelated assignment.
Remediation example
If StrComp(a, b, vbTextCompare) = 0 Then