Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best Practice for Library Building and Toolboxes
#19
(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)
Reply


Messages In This Thread
RE: Best Practice for Library Building and Toolboxes - by SMcNeill - 10-18-2023, 11:27 PM



Users browsing this thread: 6 Guest(s)