DictField.baseType Method [AX 2012]

Returns the base type of the field, such as string, real, integer, date, time, enum, or container.

public Types baseType()

Run On

Called

Return Value

Type: Types Enumeration
A Types value that specifies the type of the field.

The following example shows the retrieval of the base type of a field.

DictField df;
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
if (df)
{
    print strfmt("The field type is %1.", df.baseType());
}

Community Additions

ADD
Show: