No, this functionality did not exist until v8 and higher. Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
The way to emulate a do loop in CR7 is as follows where you want to build a list of values from a multivalue parameter.
Stringvar s:=""
if count({?parm}) >=1 then s:=s + ", " + {?parm} [1];
if count({?parm}) >=2 then s:=s + ", " + {?parm} [2];
if count({?parm}) >=3 then s:=s + ", " + {?parm} [3];
if count({?parm}) >=4 then s:=s + ", " + {?parm} [4];
if count({?parm}) >=5 then s:=s + ", " + {?parm} [5];
if count({?parm}) >=6 then s:=s + ", " + {?parm} [6];
// how many lines can you cut and paste in here
mid (s,3) // to remove the first comma and space
The only unpleasant thing is you need to code each pass of the loop, but if there aren't too many it can work well.
Thanks everyone, I found documentation which leads me to believe that in Maintenance Release 1 (MR1) of Crystal 7, this function is supported. I have since ordered MR1.
Just as a note, the problem I was having was:
I have a report with a parameter called location. I am allowing users to select multiple locations. I wanted all locations selected listed on the report header. By default Crystal only displays the first location selected. I have a Do LOOP formula which works in 8, but the application I am integrating this report with currently only supports 7. :-(
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.