CreateVariantArray3 method lets you create a new three-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.CreateVariantArray3(Low1, High1, Low2, High2, Low3, High3)
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 lowest array index of the array's third dimension.
The highest array index of the array's third dimension.
The created array.
ConvertJScriptArray routine will return a one-dimensional array that contains other arrays as its items.
' Creates a three-dimensional array [0..1, 1..2, 2..3]
w = CreateVariantArray3(0, 1, 1, 2, 2, 3)
w(0,1,2) = "Element 0,1,2"
w(0,2,2) = "Element 0,2,2"
w(1,2,2) = "Element 1,2,2"
w(1,2,3) = "Element 1,2,3"
// Creates a three-dimensional array [0..1, 1..2, 2..3]
w := CreateVariantArray3(0, 1, 1, 2, 2, 3);
w[0,1,2] := 'Element 0,1,2';
w[0,2,2] := 'Element 0,2,2';
w[1,2,2] := 'Element 1,2,2';
w[1,2,3] := 'Element 1,2,3';