COMSafeArray.GetValue

Syntax variant: List of indices

Syntax:

GetValue(<Index0>, <Index1>)

Parameters:

<Index0> (required)

Type: Number.
The value of the first index.

<Index1> (optional)

Type: Number.
The value of the next index, if the array is more than one-dimensional.

Description of method variant:

Values of array element indices beginning with the first.
Each parameter defines the value of one index. There are as many parameters as there are dimensions in the array. The type of all parameters is Number.

Syntax variant: Array of indices

Syntax:

GetValue(<Indices>)

Parameters:

<Indices> (required)

Type: Array.
Array of indices, beginning with the first.

Description of method variant:

All indices are enumerated in one array, beginning with the first index. There are as many indices as there are dimensions in the array COMSafeArray. The type for all parameter array elements is Number.

Description:

Receives the number of the array element corresponding to the given indices.

Availability:

Server, thick client, external connection.

Note:

If any of indices exceeds the permitted range, no actions will be performed and the message "Index value exceeds range limits" will be displayed.

Example:

ArrayElement = Array.GetValue(1, 2, 2);
Indexes = New Array;
Indexes.Add(1);
Indexes.Add(2);
Indexes.Add(2);
ArrayElement = Array.GetValue(Indexes);


    

1C:Enterprise Developer's Community