CreateVariantArray2 method lets you create a new two-dimensional array whose elements will have the Variant type.
This method is available if the BuiltIn plugin is installed and enabled. The plugin is installed and enabled by default.
BuiltIn.CreateVariantArray2(Low1, High1, Low2, High2)
The method is applied to the following object:
The method has the following parameters:
The lowest array index of the array's first dimension.
The highest array index of the array's first dimension.
The lowest array index of the array's second dimension.
The highest array index of the array's second dimension.
The created array.
ConvertJScriptArray routine will return a one-dimensional array that contains other arrays as its items.
' Creates a two-dimensional array [0..2, 3..4]
w = CreateVariantArray2(0, 2, 3, 4)
w(0,3) = "Element 0,3"
w(0,4) = "Element 0,4"
w(1,4) = "Element 1,4"
w(2,3) = "Element 2,3"
// Creates a two-dimensional array [0..2, 3..4]
w := CreateVariantArray2(0, 2, 3, 4);
w[0,3] := 'Element 0,3';
w[0,4] := 'Element 0,4';
w[1,4] := 'Element 1,4';
w[2,3] := 'Element 2,3';