Partilhar via


DictField.typeId Method

Definition

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

public:
 virtual int typeId();
public virtual int typeId ();
abstract member typeId : unit -> int
override this.typeId : unit -> int
Public Overridable Function typeId () As Integer

Returns

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

Remarks

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."; 
   } 
}

Applies to