VB.Net - DataTypes - Array

Array

To define and initialize a 1 dimension array use a syntax like this.

1
dim args() as string = {"a", "b"}

To define and initialize a 2 dimension array of strings use

1
2
3
4
5
Dim unittypeC = {{"In", "Inch", "Numeric"}, _
{"Ft", "Foot", "Numeric"}, _
{"Mile", "Mile", "Numeric"}, _
{"Yard", "Yard", "Numeric"} _
}

Uo define an array of records use

1
2
3
Dim dt As System.Data.DataTable _
= cn.GetOleDbSchemaTable(OleDb.OleDbSchemaGuid.Tables, _
New Object() {Nothing, Nothing, Nothing, Nothing})