COMVariant.createFromInt64 Method

Definition

Overloads

createFromInt64(Int64)

Creates a new COMVariant object and initializes it with an int64 value (longLong or uLongLong) in one operation.

createFromInt64(Int64, COMVariantInOut)

createFromInt64(Int64)

Creates a new COMVariant object and initializes it with an int64 value (longLong or uLongLong) in one operation.

public:
 static Dynamics::AX::Application::COMVariant ^ createFromInt64(long num1);
public static Dynamics.AX.Application.COMVariant createFromInt64 (long num1);
static member createFromInt64 : int64 -> Dynamics.AX.Application.COMVariant
Public Shared Function createFromInt64 (num1 As Long) As COMVariant

Parameters

num1
Int64

Returns

The new COMVariant object.

Remarks

The COMVariant object that is created by this method has the data type VT_I8 (int64). You can change the data type of an existing COMVariant object to VT_I8 by using the variantType method or by passing in an int64 value by using the longLong or uLongLong property method.

The following example creates a COMVariant object of the VT_I8 variant data type (integer), and sets the value to 123456.

{ 
    COMVariant var; 
    var = COMVariant::createFromInt64(123456); 
}

Applies to

createFromInt64(Int64, COMVariantInOut)

public:
 static Dynamics::AX::Application::COMVariant ^ createFromInt64(long _value, Dynamics::AX::Application::COMVariantInOut _inOutFlag);
public static Dynamics.AX.Application.COMVariant createFromInt64 (long _value, Dynamics.AX.Application.COMVariantInOut _inOutFlag);
static member createFromInt64 : int64 * Dynamics.AX.Application.COMVariantInOut -> Dynamics.AX.Application.COMVariant
Public Shared Function createFromInt64 (_value As Long, _inOutFlag As COMVariantInOut) As COMVariant

Parameters

_value
Int64

A flag that determines whether the object can be used to pass data to a COM method or COM property, to receive data, or both. This parameter is optional. Possible values are:

_inOutFlag
COMVariantInOut

A flag that determines whether the object can be used to pass data to a COM method or COM property, to receive data, or both. This parameter is optional. Possible values are:

Returns

Applies to