I'm trying to display all the values that were entered into a parameter field that allows multiple values. We are using Crystal Reports version 7.0.100.12 (version 7 MR 1). From The Crystal Decisions Knowledgebase, I got the following example - indicated it is for version 7:
numbervar counter;
stringvar holder;
counter := count({?Multi});
//The above formula line retrieves the number of elements in the array.
while counter > 0 do
(holder := holder + {?Multi}[counter] + ',';
counter := counter - 1);
holder [1 to (length(holder)-1)]
//The above formula line removes the trailing ',' from the string.
But, when I enter this (modifying it to match my database), it gives me an error starting at the "while counter > 0 do" line saying: "The remaining text does not appear to be part of the formula."
Not sure what I'm missing...
numbervar counter;
stringvar holder;
counter := count({?Multi});
//The above formula line retrieves the number of elements in the array.
while counter > 0 do
(holder := holder + {?Multi}[counter] + ',';
counter := counter - 1);
holder [1 to (length(holder)-1)]
//The above formula line removes the trailing ',' from the string.
But, when I enter this (modifying it to match my database), it gives me an error starting at the "while counter > 0 do" line saying: "The remaining text does not appear to be part of the formula."
Not sure what I'm missing...