DictTable.fieldObject Method
Creates an instance of the DictField class for the field that is specified by field ID.
Syntax
public DictField fieldObject(FieldId fieldId)
Run On
Called
Parameters
- fieldId
Type: FieldId Extended Data Type
The ID of the field to create.
Return Value
Type: DictField Class
A DictField object for the field that is specified by the fieldId parameter; nullNothingnullptrunita null reference (Nothing in Visual Basic) if the object could not be created.
Examples
The following example shows how to create a DictField object for the fields in a table.
DictTable dt;
DictField df;
int i;
dt = new DictTable(tablenum(CustTable));
if (dt)
{
for (i=1; i <= dt.fieldCnt(); i++)
{
df = dt.fieldObject(dt.fieldCnt2Id(i));
if (df)
{
print df.name();
}
}
}