Array.By number of elements

Syntax:

New Array(<TheNumberOfElements1>,...,

Parameters:

<TheNumberOfElements1>,...,Type: Number.
Each parameter specifies the number of array elements in the corresponding dimension. An unlimited number of parameters can be set. If no parameters are specified, a uni-dimensional array with 0 elements is created.

Description:

Creates an array of the specified number of elements. If several parameters are set, an array that has arrays as elements will be created (depending on the number of parameters). Actually, the wizard can be used to create arrays of arrays, that is, multidimensional arrays.

Example:

// array contains no elements
Array1 = New Array;

// array ocntains 10 elements, 
// each of them is an array of 2 elements,
// each of them is an array of 4 elements
Array2 = New Array(10,2,4);


    

1C:Enterprise Developer's Community