I have the @InitVars formula in the page title, which includes the following and similar lines:
shared numbervar runWaste:=0;
In the Details section, I have a summary report that has the @SetRunWaste formula:
shared numbervar runWaste;
if (OnFirstRecord) then
(
if not(isnull({x.x-or})) and
not(isnull({x.y-override})) and {x.y-override} = true then
runWaste:={x.x-or}
else
runWaste:= {x.x}
);
runWaste
I see that the result of this formula in the subtask is 18.00.
However, both in the other unit and in the main report in the "Details w" section (as a test), I have the following @test formula:
shared numbervar runWaste;
runWaste;
In both places it is displayed as 0.00.
Why is it showing 0 not 18?
I am using Crystal Reports version 11.0.0.895.
source
share