This is true, but only if the formulas share a global or shared variable. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
If you mean the sequence in which the formulas are placed on the report, then there is no impact. If you mean the position on the report, then location (actually the top left corner of the formula object) determines priority. And unless the formulas share information (as Ken pointed out, through Global or Shared variables), you won't know which gets figured first.
Evaluation time can also cause a few tripups, so make sure you are comfortable with that topic Andrew pointed out. Malcolm Wynden
Authorized Crystal Engineer
Malcolm, I am not sure I agree. At least I get a different result. To me, if you have two formulas sharing a variable, both while printing, and they are in the same section, then they are evaluated in the order they are added, not by position.
I created the following 2 formulas:
@assign:
WhilePrintingRecords;
NumberVar Test := {Customer.Last Year's Sales}
@Display:
WhilePrintingRecords;
NumberVar Test
I put both on details. If I put assign on first, followed by display, they show the same value. if I put display on first they are off by one record. Doesn't matter what position they are in. Am I missing something? Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
No, I stand corrected Ken, at least for current versions of the product. The last time I really had to get into this was before v5, and on reflection I think the evaluation order must have changed with the incorporation of sub sections in CR.
I was curious about how you could determine the order in which formulas were added to a section. The report definition lists the formulas in the order they are added to the report, for each section. So I guess you could check the order there, if you were truly interested.
Thanks (again) for your corrections, Ken. Malcolm Wynden
Authorized Crystal Engineer
You simply move the formulas to another section, refresh the report, and then move them back to the original section. After that point I don't think you can tell, other than by behavior with variables. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.