COMSafeArray.SetValue
Syntax variant: List of indices
Syntax:
Parameters:
<Index0> (required)
The value of the first index.
<Index1> (optional)
The value of the next index, if the array is more than one-dimensional.
<ElementValue> (required)
Description of method variant:
Syntax variant: Array of indices
Syntax:
Parameters:
<Indices> (required)
Array of indices, beginning with the first. There are as many indices as there are dimensions in the array COMSafeArray. The type for all parameter array elements is Number.
<ElementValue> (required)
Item value being set. The type of this parameter must not conflict with the established array element type COMSafeArray.
Description of method variant:
Description:
Availability:
Note:
If the value cannot be converted to the element type COMSafeArray, a message will be displayed indicating that type conversion is not allowed.
Example:
Array.SetValue(1, 2, 2, ArrayElement); Indexes = New Array; Indexes.Add(1); Indexes.Add(2); Indexes.Add(2); Array.SetValue(Indexes, ArrayElement); |