Programming with Arrays

An array is a fixed-length data structure that allows you to store and retrieve elements based on an index number. When you create an array, you get to choose its length. The length of an array determines how many elements the array can hold. An array is also a strongly typed data structure. Every array is defined in terms of a specific type such as Integer, String, or Object; this type determines what type of element can be stored within the array.

Most of the Visual Basic .NET syntax for arrays resembles that used in earlier versions of Visual Basic, with a few important exceptions. One of these differences relates to an array's lower bound. In earlier versions of Visual Basic, you could choose the lower bound when you ...

Get Building Applications and Components with 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.