DictField.typeId Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.";
}
}