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

Take comma separated string and have it look like justified list

Status
Not open for further replies.

BHScripter

Technical User
Aug 26, 2002
159
US
Hi:
I have a crystal 9 report that gets its data from a SQL Query. One of the fields returns a comma separate string of the amenities at a property such as 24 hour fitness center, courtesy patrol, Spa like swimming pool, etc. This list can have a variable # of items as each property is unique. I want these amenities to show on my report in a justified list (i.e. one after the other vertically) rather than having a comman separate line. It seems this should be easy but I'm really not sure how to do this.

Thanks for any help.
 
Please explain your solution so the thread becomes meaningful to others.

-LB
 
this was my solution (in basic syntax):

dim propamenities as string
if ISNULL({Command.communityamenity}) or {Command.communityamenity} = "" then
propamenities = "None"
else
propamenities = Replace ({Command.communityamenity}, ",", Chr(10))
propamenities = Replace (propamenities, ",", Chr(10))
end if
formula = propamenities
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top