Hi,
I'm try to display all the values from a multiple value parameter field in the report header.
There is an article on this on Crystal's website that mentions using the following code :
numbervar counter;
numbervar final;
stringvar holder;
counter := count({?Multi});
while counter > 0 do
(holder := holder + {?Multi}[counter] + ',';
counter := counter - 1);
holder [1 to (length(holder)-1)]
(I've changed 'Multi' to the field name on my report).
Each time I try this, I get an error message saying that 'The following text does not appear to be part of the formula'. This problem appears to be after line 4 (i.e. the while statement).
Does the 'while' statement actually exist in Crystal ? I can't see any reference to it in Help. and Crystal does seem to be having a problem with this line of code.I'm using version 7.0.1.100.
I'm try to display all the values from a multiple value parameter field in the report header.
There is an article on this on Crystal's website that mentions using the following code :
numbervar counter;
numbervar final;
stringvar holder;
counter := count({?Multi});
while counter > 0 do
(holder := holder + {?Multi}[counter] + ',';
counter := counter - 1);
holder [1 to (length(holder)-1)]
(I've changed 'Multi' to the field name on my report).
Each time I try this, I get an error message saying that 'The following text does not appear to be part of the formula'. This problem appears to be after line 4 (i.e. the while statement).
Does the 'while' statement actually exist in Crystal ? I can't see any reference to it in Help. and Crystal does seem to be having a problem with this line of code.I'm using version 7.0.1.100.