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!

string formula 1

Status
Not open for further replies.

Alcar

Programmer
Sep 10, 2001
595
US
I'm fairly new to Crystal Reports.
This is the scenario:
- Crystal Reports for VS.NET

I have a report field composed as string:
", item1, item2, item3"

I need to use a formula to make this field appear like this in the report

Field1
item1
item2
item3

Field2
item1
item2

this is the formula I thought worked, but it's giving me an error:

{ReportExceptions;1.Exception} = Split (Right ({ReportExceptions;1.Exception},Length ({ReportExceptions;1.Exception})-1),",")

the error is this:
Error in formula <Record_Selection>. '{ReportExceptions;1.Exception} = Split (Right ({ReportExceptions;1.Exception},Length ({ReportExceptions;1.Exception})-1),',' )' A string is required here.

have no idea :p can somebody help me please?
 
worked great. Just needed to change it a little since my items where actually compose by more than one word =)

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top