Wednesday, July 31, 2013

Displaying multiple parameter values in a Crystal Report

When a Crystal report user chooses multiple values for a parameter, sometime it's nice to display all those parameter values in the report header. The following code can be added to a function for displaying in the header.

WhilePrintingRecords;
StringVar Array term := {?Term};
StringVar terms := term[1];
Local NumberVar i;
For i := 2 To count(term) Do
(
   terms := terms + ", " + term[i];
);
terms

No comments:

Post a Comment