Back

VB036

Fixed-length string

Visual Basic 6
Warning
VB6

As String * N pads with spaces and truncates silently, so equality checks fail in ways that depend on the data

As String * N pads with spaces and truncates silently, so equality checks fail in ways that depend on the data.

Why this severity

As String * N pads with spaces and truncates silently, so equality checks fail in ways that depend on the data.


Known false positives

Type layouts for file or API I/O where the width is the contract.

Remediation example

Dim name As String

Reconnecting… Connection lost. Reload