DictTable.fieldCnt Method

Returns the number of fields for a table.

Syntax

public int fieldCnt([TableScope tableScope])

Run On

Called

Parameters

Return Value

Type: int
The number of fields for the table.

Examples

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())); 
}

See Also

Reference

DictTable Class