COMSafeArray
Methods:
GetLength
GetLowerBound
GetType
GetUpperBound
GetValue
IsResizable
Resize
SetValue
Unload
Constructors:
Based on element type 2
From array 1
From array 2
From COMSafeArray
Description:
To pass an array as a COM-object method parameter, you must construct COMSafeArray with the necessary dimensions and element type, and specify COMSafeArray as the value of the input parameter. Other 1C:Enterprise objects may be used as values for input parameters of type Array only when there is information on parameter types in the COM-object type library.
The result of a COM-object method and the output value of Array type parameters will always be a COMSafeArray object.
Availability:
Example:
Array = New COMSafeArray("VT_I4", 2); Array.SetValue(0, 23); Array.SetValue(1, 13.5); COMObject = New COMObject("ExampleCOMObject.ECOMClass"); COMObject.ProcessSafeArray(Array); |
See also: