Why the report errors out when evaluating a formula that equals zero? -


i have formula field:

global numbervar totdiff;  whileprintingrecords;  if {@quantexceding} <> 0     totdiff := totdiff + abs({@quantexceding}) else     totdiff := totdiff 

initially, if clause not there, thought abs erroring out when passed 0. see whatever quantexceding, when equals 0, reports errors out , highlights first line of if or whatever line invokes quantexceding

any ideas ?

change formula , make sure {@quantexceding} evaluating first:

whileprintingrecords; evaluateafter({@quantexceding}); global numbervar totdiff;  if {@quantexceding} <> 0     totdiff := totdiff + abs({@quantexceding}) else     totdiff := totdiff 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -