about x++

qbr = qbds1.addRange(fieldnum(LedgerTable,

AccountNum));

please explain me about fieldnum

http://msdn.microsoft.com/en-us/library/aa582184.aspx

this might help you,

please go through this…

FieldNum function - Returns the ID number of the specified field.

int fieldNum(str tableName, str fieldName)

tableName - Table name

fieldName - fieldName

You can look at the below example :

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

}

fieldnum will return id of the field in the Table…

For ex:

Check purch table > purchid > properties > Id = 1