newlist = '"' & replace(oldlist, ', ', '", ", "all") & '"'

I think I got all those quotes and such right.

Another method would be to loop over the list and use listappend to 
create a new one, something like this:

<cfloop list="#oldlist#" index="i">
        <cfset listappend(newlist, '"#i#"')>
</cfloop>

As always, untested, YMMV, keep your head inside the web page at all times.

--Ben Doom

John P wrote:
> Is there a way to reformat text in a text area to add quotation marks and 
> different line spacing?
> So a comma separated list:
> 
> John, Tom, Frank, Bonnie, Jennifer, Richard, Sally
> 
> 
> Would become this:
> 
> 
> "John", "Frank"
> 
> "Bonnie", "Jennifer"
> 
> "Richard", "Sally"
> 
> Thanks for your help, John
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284260
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to