Guys:
In old Clipper 5.2e & DOS the following report worked flawlessly:
On FWH, the setting:
Software stops with an error on expression: (nQty * Cost)
Thank you
In old Clipper 5.2e & DOS the following report worked flawlessly:
LOCAL dDate := CTOD(), bForCond := EVAL({|| nQty := IIF(dDate == DATE(), Qty, FindInvQty (InvNo, Qty, @dDate)), .T.})}
.
.
.
dDate := ... // Date entered by user.
REPORT FORM repname FOR EVAL(bForCond)
// On the report (FRM) there are two columns out of 7:
// Column 4: nQty
// Column 5: nQty * CostOn FWH, the setting:
COLUMN TITLE 'On Hand' DATA nQty PICTURE "999999.99" SIZE 9
COLUMN TITLE 'Reorden Point' DATA Reorder PICTURE "999999.99" SIZE 9
COLUMN TITLE 'Unit Cost' DATA Cost PICTURE "999999.99" SIZE 9
COLUMN TITLE 'Total Cost' DATA ROUND(nQty * Cost,2) ;
PICTURE "999999.99" TOTAL SIZE 12
oRep:bFor := {|| nQty := IIF(dDate == DATE(), Qty, FindInvQty (InvNo, Qty, @dDate)))}Software stops with an error on expression: (nQty * Cost)
Thank you