Crystal Reports-Use an array variable to store dynamic data
Posted on 2011-02-16
Hello--I have an existing complex report which I need to modify in the following way. The report uses a sub-report to locate names (First, middle and Last) associated with a case. Since the names and number of associated names are not known in advance, I would like to explore the usage of an array variable.
What I am envisioning is something like this:
Inital set-up in sub-report
Declare array variable
READ 1st NAME in sub-report
Set subscript up by 1
move name to array variable (subscript)
After sub-report has finished for that case, I envision the formula in the main report doing something like this to print array contents:
add 1 to subscript
Obviously, I have had experience in other languages in doing something like this, but I don't know the specifics of using this in Crystal. Your very detailed answer is GREATLY appreciated.