报告公式导致运行时错误

时间:2017-06-13 15:58:58

标签: crystal-reports

当我从Crystal Reports检查我的公式时,它找不到任何错误。但是当我运行我的项目时,我收到运行时错误。我该如何解决这个问题?

NumberVar t := 0;

IF 
(
    ToNumber({3ColTrailBalSumm.DR_BEFORE}) - (ToNumber({3ColTrailBalSumm.CR_BEFORE}) -
    ToNumber({3ColTrailBalSumm.CR_BETWEEN}) + ToNumber({3ColTrailBalSumm.DR_BETWEEN})) > 0
)
THEN
(
    WhilePrintingRecords;
    t := ToNumber({3ColTrailBalSumm.DR_BEFORE}) - ToNumber({3ColTrailBalSumm.CR_BEFORE}) - 
    ToNumber({3ColTrailBalSumm.CR_BETWEEN}) + ToNumber({3ColTrailBalSumm.DR_BETWEEN});
)
ELSE
(
    t := 0;
)

enter image description here

0 个答案:

没有答案