Friday, October 29, 2010

This seems to do nothing

I have been debugging new AX2009 to which we migrated recently, and sometimes it is a real fun!


if (numberOfTransOpen == 1 ||
            (numberOfTransOpen > 1 && !printPaymentSchedule))
        {
            // this seems to do nothing
            if (printPaymentSchedule)
            {
                select firstonly tmpCustVendTransOpen;
            }

1 comment:

gl00mie said...

If a code traverses a temporary table and then uses it to display data on a grid then you have to "reset" the cursor otherwise a user will only see the last record. So the code is not that useless.