The expression common.(fieldNum(CustTable, AccountNum)) dynamically retrieves the value of the AccountNum field from the CustTable record stored in common.
Common common = CustTable:find("Test");
info(strFtm("Customer id %1", common.(fieldNum(CustTable, AccountNum))));