COMVariant::createNoValue Method [AX 2012]

Creates a COMVariant object of the VT_ERROR variant type with no value.

client server public static COMVariant createNoValue()

Run On

Called

Return Value

Type: COMVariant Class
The new COMVariant object.

A COMVariant object with no value can be used for COM parameters which are optional.

The following example creates an empty COMVariant object.

COMVariant noValue; 
 
noValue = COMVariant::createNoValue(); 
info(noValue.toString());
Show: