since "word1,word2,word3" is a comma delimited list, use list functions.
ex, 

<CFSET listowords = "word1,word2,word3">

<CFSET firstword = ListGetAt(listowords, 1)>
<CFSET secondword = ListGetAt(listowords, 2)>
...

Chris Olive,
DOEHRS Website Administrator 
-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 24, 2000 11: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/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
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