COMSafeArray.GetLength

Syntax:

GetLength(<DimensionNumber>)

Parameters:

<DimensionNumber> (optional)

Type: Number.
Dimensions in the array are numbered from first to last, beginning with zero.
Default value: 0.

Returned value:

Type: Number.

Description:

Receives the number of elements in the given array dimension.

Availability:

Server, thick client, external connection.

Note:

If the dimension number given as a parameter is less than 0 or greater than the maximum dimension, no actions will be performed and the message "Index value exceeds range limits" is displayed.

Example:

IndexOf = 0;
Count = Array.GetLength(0);
While 
IndexOf < Count Do
    ArrayElement = Array.GetValue(IndexOf);
EndDo
;


    

1C:Enterprise Developer's Community