Array.UBound

Syntax:

UBound()

Returned value:

Type: Number.
The largest index in an array. If the quantity of elements equals 0, -1 is returned.

Description:

Obtains the maximum index of an array element.

Availability:

Thin client, web-client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Note:

The maximum index corresponds to the number of elements minus 1.

Example:

For IndexOf = 0 to Array.UBound() Do
    Array[IndexOf] = Array[IndexOf] + 1;
EndDo
;


    

1C:Enterprise Developer's Community