eg
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.
eg
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.