Working with Arrays and Array Elements
This section discusses the sorting of arrays, putting or getting an array value, and other actions on arrays and array elements.
In This Section
- How to: Put a Value into an Array
Shows how to store values in array elements.
- How to: Get a Value from an Array
Discusses how to retrieve values from array elements.
- How to: Locate an Element in an Array in Visual Basic
Explains how to find a particular element in an array.
- How to: Reverse the Contents of An Array in Visual Basic
Describes how to reverse the order of the elements of an array.
- How to: Sort An Array in Visual Basic
Shows how to sort the elements of an array alphabetically.
- How to: Assign One Array to Another Array
Describes the rules and steps for assigning an array to another array variable.
- How to: Change an Array to a Different Array
Discusses what changes are possible and how to accomplish them.
- How to: Pass an Array to a Procedure or Property
Explains how to pass an array as an argument to a procedure or property.
- How to: Return an Array from a Procedure or Property
Describes how to return an array to the code that calls a procedure or property.
Reference
- Dim Statement (Visual Basic)
Declares and allocates storage space for one or more variables.
- System.Array
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the base class for all arrays in the common language runtime.
Related Sections
- Troubleshooting Arrays
Discusses some common problems that arise when working with arrays.
- Arrays in Visual Basic
Discusses making your code more compact and powerful by declaring and using arrays.