COMVariant.toString Method [AX 2012]

Creates a string representation of a COMVariant object. This string representation includes the value and type of the object.

public str toString()

Run On

Called

Return Value

Type: str
The string representation of the COMVariant object.

The actual string returned from this method depends on the variant data type of the COMVariant object.

The following example creates a COMVariant object and assigns the current date to it. It then prints a description of the object to the Infolog.

COMVariant theDay; 
 
theDay = COMVariant::createFromDate(today()); 
info(theDay.toString());

Community Additions

ADD
Show: