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

Separating Information

Status
Not open for further replies.

rschkrt

MIS
Apr 24, 2002
13
US
I have multiple response in software we are using but in crystal report it gives me a "&" sign first. How can I get rid of the "&"sign?

Example &car&door&truck

Thank you.
 
Assumming you are on version 8 or newer of crystal, the split() function is the key.

Split({fieldname},"&") will return a string array of however many elements there are in the string, with a "&" as a separator.

the following formula will return the second substring, or "door", in the array.

StringVar Array Values:=Split({fieldname},"&")
Values[2];

Let me know if you have any questions




Software Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top