Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comma Delimited String Parameter Output

Status
Not open for further replies.

jhansard

Technical User
May 2, 2001
3
US
I have upgraded from CR 7.0 to CR 8.5 and have noted that on input parameters that contain commas in the response string in CR 7.0 and CR 8.5 create different results on output. In CR 7.0 I would place the input parameters on the footer of the report so the user could see the values they input to create the report. In CR 7.0 the parameter listed would show the several comma seperated values they input. Although the logic processes the same now in CR 8.5 the parameter listed on the footer only shows the string before the first comma. Is there a way to force CR 8.5 to show the whole parameter input string like it did in CR 7.0?
 
CR 8.5 uses an array rather than a comma-delimited string to store multiple parameter values. The Join function can be used to convert the array into a string.
 
faq149-243 shows you how to write formulas that display the entries in Multiple and Range parameters, by version. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Therefore I understand everyone to agree that when I enter a person's name like Smith, John to perform a lookup on for reporting purposes then the input parameter will treat this as an array of two elements with the contents of Smith and John and then match based on this instead of "Smith, John" as it did in CR 7.0? Even though the parameter setup has multiple entries disabled for this input? This in part the concern I have from my original posting.
 
I don't agree. Sorry I must have missed your point.
If you use a single discrete value parameter, and you enter

Smith, Joe

It should treat this as a single string with a comma in it.

I just entered this into one of my parameters and then wrote a formula that was:

{?test} + {?test}
and it gave me:

Smith, JoeSmith, Joe Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top