trapset4
Programmer
- Oct 21, 2008
- 11
I am using 2 arrays. 1 array captures the groupname(finish name). The other captures occurrences of the groupname. I then find the max of occurrences and use my counter to find the corresponding finish name. The counter works and I can capture the occurrences, but I cannot capture the finish name - it seems like it is always blank. Is this a proper way to do it?
This formula is on the finish group header. "finish" at the bottom is just an output test(which failed).
Any ideas?
WhilePrintingRecords;
Shared StringVar Array finish;
Shared NumberVar i; //other counter
If GroupName ({@Finish}) <> "" Then
(
i:= i + 1;
Redim Preserve finish;
finish = GroupName ({@Finish})
);
finish
This formula is on the finish group header. "finish" at the bottom is just an output test(which failed).
Any ideas?
WhilePrintingRecords;
Shared StringVar Array finish;
Shared NumberVar i; //other counter
If GroupName ({@Finish}) <> "" Then
(
i:= i + 1;
Redim Preserve finish;
finish = GroupName ({@Finish})
);
finish