COMSafeArray.GetUpperBound

Syntax:

GetUpperBound(<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 maximum index value for 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:

IndexMin = Array.GetLowerBound(0);
IndexMax = Array.GetUpperBound(0);
For 
IndexOf = IndexMin to IndexMax Do
    ArrayElement = Array.GetValue(IndexOf);
EndDo
;


    

1C:Enterprise Developer's Community