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 number of table fields and edit and display methods in the field group.
Syntax
public int numberOfFields()
Run On
Called
Return Value
Type: int
The number of table fields and edit and display methods in the field group.
Examples
The following example shows the retrieval of the number of table fields and edit and display methods in a field group.
DictFieldGroup fldGrp;
DictField fld;
fieldId fldId;
tableId tblId;
int i;
tblId = tablenum("CustTable");
fldGrp = new DictFieldGroup(tblId,"AutoReport");
if (fldGrp)
{ for (i=1; i <= fldGrp.numberOfFields(); i++)
{
fldId = fldGrp.field(i);
fld = new DictField(tblId, fldId);
if (fld)
{
print 'Field: ' + fld.name()
+ ' (' + int2str(fldId) + ')';
}
else
{
print 'MethodName: ' + fldGrp.methodName(fldId)
+ ' (' + int2str(fldId) + ')';
}
}
}