Arrays

The major change in arrays in Visual Basic .NET is in how an array's upper and lower bounds can be set. In Visual Basic 6.0, either you could specify just an upper value, in which case the Option Base setting for your code would determine whether the array had a lower bound of 0 or 1, or you could specify both the upper and lower bounds as a range. In Visual Basic .NET, all arrays have a lower bound of 0, which is why the Option Base statement no longer exists. Because of this explicit lower bound, specifying both the upper and lower bounds in an array declaration is no longer required or supported. In general, this change can cause a lot of confusion, and it can require quite a few changes in your code if you commonly specified the lower ...

Get Microsoft® Visual Basic® .NET 2003 Kick Start 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.