Changes to Array Bounds

Array bounds have gone through several revisions in Visual Basic .NET. Several books based on Beta versions of Visual Basic .NET covered this topic incorrectly because array implementation evolved in response to outcry from some developers who apparently had Microsoft's ear.

By Beta 2 build 9254, the array behavior had reached its final form, but the Visual Basic .NET help still reported incorrect information as indicated by the following quote from the help topic “Array Bound Changes in Visual Basic”:

The number you specify for each dimension in the declaration is the initial element count. The upper bound is equal to that count minus one.

Option Base is not supported in Visual Basic .NET. The array bounds are from ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.