Share via


DictField.type Method

Returns the data type of the field.

Syntax

public Types type()

Run On

Called

Return Value

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

Remarks

If the field is based on an extended data type, Types::UserType is returned as the return value of this method.

Examples

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

DictField df; 
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
 
if (df) 
{ 
    print df.type(); 
}

See Also

DictField Class

DictField.baseType Method