Changes to the Language

The following sections detail a number of changes that have occurred to the Visual Basic language since version 6.0. For a more complete reference to the Visual Basic language changes, look for the topic “Language Changes in Visual Basic” in the Visual Basic .NET Help system, which can be found in the Help index under “Visual Basic/changes to.”

Array Bounds

When you declared an array in VB6, the default behavior was for the lowest-numbered element of the array to be element 0. In other words, declaring an array with the line Dim MyArray(3) As Integer created an array containing four elements: MyArray(0), MyArray(1), MyArray(2), and MyArray(3). However, you could use the statement Option Base to cause arrays to begin ...

Get Special Edition Using Microsoft® Visual Basic® .NET 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.