Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Help Post Reply Post New Topic
Author Message
Neill
Newbie
Newbie


Joined: 17 Mar 2011
Online Status: Offline
Posts: 1
Quote Neill Replybullet Topic: Formula Help
     Posted: 17 Mar 2011 at 10:48am
I have 2 formulas.
 
1st one is in the Report Header:
 
global numbervar var := 2;
 
2nd one is in the Page Header;
 
global numbervar var;
global numbervar temp := 1;
if temp > var then
"higher than 1"
else
"lower or equal to 1"
 
However the output of formula 2 in the Page Header is displaying the text:
"higher than 1"
 
What am I doing wrong?
 
Thanks in advance.
 
Neill
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 18 Mar 2011 at 2:52am
var is a reserved word in CR.  Try changing the name.  Otherwise the logic seems correct.
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum