Arrays in Visual Basic
When you use arrays, you can refer to multiple values by the same name, using a number called an index or subscript to distinguish them from one another. Arrays can shorten and simplify your code, allowing you to create loops that deal efficiently with any number of elements.
In This Section
Overview of Arrays in Visual Basic
Defines the relevant terms and exhibits sample arrays.
Array Dimensions in Visual Basic
Explains rank and dimensions in arrays.
Multidimensional Arrays in Visual Basic
Discusses arrays that have more than one dimension.
Jagged Arrays in Visual Basic
Describes arrays of arrays, also known as jagged arrays.
Array Data Types in Visual Basic
Discusses the factors that determine the data type of an array.
Array Size in Visual Basic
Discusses considerations relating to the size of an array and each of its dimensions.
Working with Arrays and Array Elements
Discusses sorting of arrays, getting or putting an array value, and so on.
Collections as an Alternative to Arrays
Compares on storing items in a collection to storing them in an array.
Discusses some common problems that arise when working with arrays.