Skip to Content
Former Member
Jul 08, 2010 at 04:44 PM

Parameter with multiple values


I have written a Crystal report that has a parameter with multiple valies. In this parameter users enter 2 values delimeted by :

This parameter accepts a unit name and a number from the users:

Ex: Unit1:34

The number will be displayed next to each unit in report

So in my selection formula I have written the following.

StringVar Array sTest := ["", ""];

sTest:=split({?unit and number},":");

{Programs.Name} = sTest[1]

Above code works if I disable the "Allow multiple values" in the parametes screen. But my requirement is to have more than one value. So the moment I enabl allow multiple values and enter the following in the parameter firld, I get the error:

"This array must be subscripted. For example: Array<i>."

Parameter Values:



I understand the moment you enable Allow multiple values, the parameter becoms an array, but I don't know how to use this in the selection formula.

Any help is greatly appreciated.