DictTable.fieldCnt Method [AX 2012]

Returns the number of fields for a table.

public int fieldCnt([TableScope tableScope])

Run On

Called

Parameters

tableScope
Type: TableScope Enumeration

Return Value

Type: int
The number of fields for the table.

The following example shows the retrieval of the number of fields for a table.

DictTable dt; 
 
dt = new DictTable(tablenum(CustTable)); 
if (dt) 
{ 
    print (strfmt("The table has %1 fields.", dt.fieldCnt())); 
}

Community Additions

ADD
Show: