【发布时间】:2011-02-01 08:04:56
【问题描述】:
我在页眉中有一个公式@InitVars,其中包括以下和类似的行:
shared numbervar runWaste:=0;
在详细信息 v 中,我有一个子报告,其中有一个公式 @SetRunWaste:
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
我可以在子报告中看到这个公式的输出是 18.00。
但是,在另一个子报告中,详细信息 az 和详细信息 w(作为测试)的主报告中,我都有以下公式 @test:
shared numbervar runWaste;
runWaste;
在这两个地方,它都显示为 0.00。
为什么显示的是 0 而不是 18?
我使用的是 Crystal Reports 版本 11.0.0.895。
【问题讨论】:
标签: crystal-reports