fieldNum Function
Dynamics AX 2009
Returns the ID number of the specified field.
int fieldNum(str tableName, str fieldName)
The following example prints the number of the CashDisc field in the CustTable table.
static void fieldNumExample(Args _args)
{
int myInt;
;
myInt = fieldNum(CustTable, CashDisc);
Global::info(strfmt("CashDisc has a field ID of %1 in the CustTable table.", myInt));
}
/****Infolog Display
Message (10:40:00 am)
CashDisc has a field ID of 10 in the CustTable table.
****/
Community Additions
ADD
Show: