10-18-2023, 11:27 PM
(10-18-2023, 11:12 PM)Kernelpanic Wrote:Quote:You guys are missing the point here, completely.If I understand correctly, as I mentioned it.
First example results in 101 array elements
Second example also results in 101 elements, but because of the declaration there is "out of range".
First example you have 100 array elements:
Option Base 1
...
Dim AppleJuiceSales(100)
With no lbound defined here, the array uses the Option Base you set to make this Dim AppleJuiceSales(1 to 100).
Which is different from the second which is 101 elements with:
Dim AppleJuiceSales(0 TO 100)