| Start |
|---|
Array definition Zero-BasedAll arrays in VB.NET are zero-based. In other words, the index of the first item (the lower bound) in a VB.NET array is always Nested Array Declarations |
| Null Array Variables Since arrays are reference types, an array variable can be null. To declare a null array variable, you must declare it without a size: Or To check if an array is null, test to see if it To set an existing array variable to null, simply set it to Or use |
Declare a single-dimension array and set array element values or |
Array initialization |
| Jagged Array Initialization Note the parenthesis to distinguish between a jagged array and a multidimensional array SubArrays can be of different length |
| Referencing Same Array from Two Variables Since arrays are reference types, it is possible to have multiple variables pointing to the same array object. |
| Non-zero lower bounds With As well as by using Multi-dimensional non-zero lower bounded arrays are compatible with VB.NET multi-dimensional typed arrays: MSDN reference: Array.CreateInstance (opens new window) |
Multidimensional Array initialization RemarksAn array is an index-ordered collection of objects. The type of object is defined by the type given in the array declaration. Arrays in Visual Basic .NET are most commonly (and by default) zero (0) based, meaning that the first index is 0. An array of 10 elements will have an index range of 0-9. When accessing array elements, the maximum accessible index is one less than the total number of elements. Because of this, loops that access array indices incrementally should always do a range check where the value is less than the array length. |
Read Article
https://develop.horje.com/learn/1434/reference