Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Variable in a formula Post Reply Post New Topic
Author Message
Anna
Newbie
Newbie


Joined: 24 Jul 2011
Online Status: Offline
Posts: 10
Quote Anna Replybullet Topic: Variable in a formula
    Posted: 07 Aug 2011 at 10:43pm
Hi All,
 
I have declared a variable AntalPALD in formula @Variable_PADL (summary of several running totals), and now I want to use that variable in a formula, actually another variable declaration, but it doesnt seem to work. What could be wrong?
 
//Syntax
EvaluateAfter({@Variable_PADL});
NumberVar AntalPADL1:= AntalPADL;
 
//Error message
 
A number, currency amount"..." is expected here.
 
The variable is declared as a NumberVar.
 
Tnx in advance,
Anna
 
 
 
 
 
IP IP Logged
Anna
Newbie
Newbie


Joined: 24 Jul 2011
Online Status: Offline
Posts: 10
Quote Anna Replybullet Posted: 07 Aug 2011 at 10:44pm

Sorry. A textmistake in above. It should be

"I have declared a variable AntalPADL in formula @Variable_PADL.."
IP IP Logged
Anna
Newbie
Newbie


Joined: 24 Jul 2011
Online Status: Offline
Posts: 10
Quote Anna Replybullet Posted: 07 Aug 2011 at 11:09pm
//Syntax for the variable declaration in formula @Variable_PADL
 
Global NumberVar AntalPADL:=0;
AntalPADL:=({#Antal pers_PADL1} + {#Antal pers_PADL2} + {#Antal pers_PADL3} + {#Antal pers_PADL4-5} + {#Antal pers_PADL_saknas});
 
AntalPADL
IP IP Logged
Anna
Newbie
Newbie


Joined: 24 Jul 2011
Online Status: Offline
Posts: 10
Quote Anna Replybullet Posted: 08 Aug 2011 at 1:20am

Does anyone know if the formula;

AntalPADL:=({#Antal pers_PADL1} + {#Antal pers_PADL2} + {#Antal pers_PADL3} + {#Antal pers_PADL4-5} + {#Antal pers_PADL_saknas});
 
is a first or secondpass formula?
 
tnx,
Anna
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.000 seconds.