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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple string paramters

Status
Not open for further replies.

ridhirao22

Programmer
Aug 27, 2010
140
US
Hi,

Using CR2008 and I found this solution exactly what I am looking for and wanted to try but couldn't figure how I could correct my formula.

I get the error when I try the solution suggest in this forum when I create the @delimit. "The remaining text does not appear to be part of the formula"


Create a Custom Function (named 'Delimit') with this text:
// Delimit()
// enclose each value in array in **, returning an array
Function (Stringvar Array params)

Split("*" + Join(params, "*,*") + "*", ",")

Modify the report's record-selection formula:
If {?Customer Name}<>"ALL" Then
{TABLE.CUSTOMER_NAME} LIKE Delimit({?Customer Name})
Else
True

Thanks in advance,
RR
 
Are you trying to use Delimit as a formula instead of a function? The fact that you referred to "@delimit" makes me think that's the issue.
 
I cannot even save the Formula Delimit. I get the error when I am save the custom function code in the delimit formula.
Thank you the reply, Charliy
 
That's because you're trying to save it as a formula instead of a function.

Click on the "Formula Workshop" button.
You'll see a line that says "Report Custom Functions" - Right Click on it and select "New"
You be prompted for a function name - enter "Delimit", then click "Use Editor"
put the code for Delimit in the text box that appears (delete the default text)
Save it, now Delimit is a function you can use in your report.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top