Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the ID of the enumeration if the field is based on an enumeration.
Syntax
public EnumId enumId()
Run On
Called
Return Value
Type: EnumId Extended Data Type
The enumeration ID if the field is based on an enumeration; otherwise, 0 (zero).
Examples
The following example shows the retrieval of the enumeration ID and the enumeration name of a field that is based on an enumeration.
DictField df;
DictEnum de;
enumId id;
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum));
if (df)
{
id = df.enumId();
if (0 != id)
{
de = new DictEnum(id);
if (de)
{
print de.name();
}
}
}