Share via


DictField.typeId Method

Returns the ID of the extended data type if the field is based on an extended data type.

Syntax

public ExtendedTypeId typeId()

Run On

Called

Return Value

Type: ExtendedTypeId Extended Data Type
The ID of the extended data type if the field is based on an extended data type; otherwise, 0 (zero).

Examples

The following example shows the retrieval of the extended data type ID for a field.

DictField df; 
extendedTypeId eti; 
DictType  dt; 
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum)); 
 
if (df) 
{ 
   eti = df.typeId(); 
   if (0 != eti) 
   { 
        dt = new DictType(eti); 
        if (dt) 
        { 
            print strfmt("The field is based on %1.", dt.name()); 
        } 
   } 
   else 
   { 
        print "The field is not based on an extended data type."; 
   } 
}

See Also

Reference

DictField Class