Crystal Reports 8.5 Developer Parameter Issue

Have a report that works fine in every sense right up until the client wants me to change the parameter setting from Discrete to Discrete & Range of Values under the setting known as Options under the Parameter Field Settings. When I do that the error is thrown.

"A number currency amount, boolean, date, time, date-time or string is required here."

It is posted right in front of the {?RptTerr} for which I changed the parameter for
in this line  ........   s = s & comma & {?RptTerr}(i)

Here is the formula:
dim i as number
dim s as string
dim comma as string

for i = 1 to UBound({?RptTerr})
s = s & comma & {?RptTerr}(i)
comma = ", "
next

formula = s

Any ideas how I can utilize the Discrete and Range of Values and what I might need to do in order to fix this.
RUA Volunteer2?Tableau Trainer & Consultant Sales Exec.Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Try using Minimum and Maximum

I don't think a range gets passed in as an array

Try it this way
s =  Minimum({?RptTerr}) + ", " + Maximum({?RptTerr})

You may also have to check if a range or discrete value was entered.

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RUA Volunteer2?Tableau Trainer & Consultant Sales Exec.Author Commented:
As always you make me look like I am worth something more than I may actually be. Thanks for the help. I actually remember that problem now that you brought it up. I had forgotten the solution. Thank you sir.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.