Skip to content

The VB code is not valid VB6 (Visual Basic 6.0) syntax #7

Description

@greenozon

eg

Image

ReDim Table(0) dynamically resizes an array named Table to hold 1 element (index 0).

Table = Array(&H59) reassigns Table to a new array containing one hexadecimal value &H59

The problem is that VB6 does not allow assigning a new array to a dynamically sized array like this.
Once you've used ReDim, the array is fixed in memory, and you can't overwrite it with Array(...) unless Table is declared as a Variant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions