If the goal is to just output it to the screen as a list with one item on
each line try:

<cfoutput>#replace(yourString, ",", "<BR>", "ALL")#</cfoutput>

This replaces all the commas (your delimiter which is unique) with <BR>
tags.

--Doug

-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 8:54 AM
To: '[EMAIL PROTECTED]'
Subject: splitting strings


if I have a string like word1,word2,word3

How could I split it in Cold Fusion into ?

word1
word2
word3 

Thanks,
Pete

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to