This documentation is archived and is not being maintained.
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
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());