DictField.arraySize Method [AX 2012]

Returns the array size for the field (in other words, the array size of the underlying extended data type).

public int arraySize()

Run On

Called

Return Value

Type: int
The array size for the field; 1 if the field is not an array.

The following example shows the retrieval of the array size for a field.

DictField df; 
Types     t; 
 
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum));  
if (df) 
{ 
    print strfmt("The arraySize is %1.", df.arraySize()); 
}

Community Additions

ADD
Show: