Create<n>D<Type-Name>Array

Array Types and Functions

Create an array of n dimensions of the type specified in Type-Name.

<Type-Name> ArrayCreate<n>D<Type-Name>Array( int lower_bound,int upper_bound, int lower_bound, int upper_bound...);
lower_boundThe lower bound of one dimension of the array.
upper_boundThe upper bound of one dimension of the array.

The Create<n>D<Type-Name>Array family of functions creates arrays of ndimensions of the type specified in Type-name. For each dimension, the call must specify the lower_bound and upper bound.

    Create2DByteArray(0, 2, 0, 5);

    Create3DByteArray(0, 2, 0, 5,0,5);

Return Values

lrc Return Values

Parameterization

Parameterization is not applicable to this function.

Example

This example creates a 2-dimensional array of bytes with indices 0 to 2 and 0 to 5:

ByteArray array0;
array0 = Create2DByteArray(0, 2, 0, 5);

This example creates a 1-dimensional array of BSTR with indices 0 to 5:

BstrArray Var;
Var = Create1DBstrArray(0, 5);