Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Incorrect formula? Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
aharonmc
Newbie
Newbie


Joined: 02 Apr 2012
Location: United States
Online Status: Offline
Posts: 10
Quote aharonmc Replybullet Posted: 19 Dec 2012 at 7:45am
There is a function to force one formula to be evaluated before another you might try and play with:  Evaluateafter(x):
 

EvaluateAfter (x)

Basic and Crystal syntax.

Arguments
  • x is any valid formula name.
Returns

None

Action

This function can be used to force one formula to be evaluated after another. For example, two separate formulas in your report may have the same evaluation time (BeforeReadingRecords, WhileReadingRecords, or WhilePrintingRecords), or they appear in the same section of the report and, therefore, are automatically evaluated while records are printing. In such cases, it is often unclear which formula is evaluated first.

In many situations, it may be unimportant which formula is evaluated first. However, some situations may require that one formula be evaluated after another. For instance, one formula may set the value of a variable while the other formula reads the value of that variable. The EvaluateAfter function can be used to force the second formula to be evaluated after the first formula has completed.

Examples

The following examples are applicable to both Basic and Crystal syntax:

EvaluateAfter({@SetVariable})

Forces the formula to wait until the @SetVariable formula has completed calculations.

IP IP Logged
vfh-bw
Newbie
Newbie


Joined: 14 Dec 2012
Online Status: Offline
Posts: 6
Quote vfh-bw Replybullet Posted: 20 Dec 2012 at 1:48am
EvaluateAfter(x) worked, thank you so much!!!

'Tis still a mystery why it wasn't evaluating as expected, but oh well I have better things to do with my time.  =)
IP IP Logged
<< Prev  Page  of 2
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