I have set up a dummy subreport at the group footer level of my main report. The idea being that I can build up a shared array and pass it to the subreport.
I'm successfully setting up the array in the main report however when I try to get the data out in the subreport it appears that my array counter isn't incrementing correctly.
I've got a formula in the details section of the subreport
whileprintingrecords;
shared stringvar array GroupNameArray;
numbervar subcounter;
GroupNameArray[subcounter]
And the subcounter is incremented using a seperate formula in the details section of the subreport
whileprintingrecords;
numbervar subcounter;
subcounter:=subcounter + 1
If I put the counter into the first formula the counter goes out of range for the array. As it stands its set to 0.
What am I doing wrong?
I'm successfully setting up the array in the main report however when I try to get the data out in the subreport it appears that my array counter isn't incrementing correctly.
I've got a formula in the details section of the subreport
whileprintingrecords;
shared stringvar array GroupNameArray;
numbervar subcounter;
GroupNameArray[subcounter]
And the subcounter is incremented using a seperate formula in the details section of the subreport
whileprintingrecords;
numbervar subcounter;
subcounter:=subcounter + 1
If I put the counter into the first formula the counter goes out of range for the array. As it stands its set to 0.
What am I doing wrong?