Dear Experts:
How to make a cumulated variable in cal code appears on the layout?
When I put this variable in a textbox in the layout, it gives me a weird number.
This is my small code:
"
IF ItemRec.GET("Trans. Sales Entry"."Item No.") THEN BEGIN
UnitCost:=ItemRec."Unit Cost";
TotCost:=TotCost-"Trans. Sales Entry".Quantity*UnitCost;
END
"
So how to make Totcost variable appears on the layout when i run the report?
Best Regards