COMSafeArray

Methods:

GetDimensions
GetLength
GetLowerBound
GetType
GetUpperBound
GetValue
IsResizable
Resize
SetValue
Unload

Constructors:

Based on element type 1
Based on element type 2
From array 1
From array 2
From COMSafeArray

Description:

The object shell under the multidimensional array SAFEARRAY from COM. Allows you to create and use SAFEARRAY for data exchange between COM-objects.
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:

Thin client, server, thick client, external connection.

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:

COMSafeArray, constructor From COMSafeArray

    

1C:Enterprise Developer's Community