If you can't change the way the list is generated, you'll need to look at finding a pattern to enable you to replace the delimiters to something that won't appear in the list items. Pipes or non-printing characters are good.
>From your example, the delims are ", ". Can you guarantee that string won't appear in the list values? Is so, do a replace on it and you'll have a shiny new list which'll be easier to work with. Adrian http://www.adrianlynch.co.uk/ -----Original Message----- From: Leitch, Oblio Sent: 28 January 2008 13:52 To: CF-Talk Subject: escape commas from listToArray OMG - I can't believe I have to ask this. I can't seem to escape a comma out of a list when converting to an array. Here's an example: <cfscript> example="something 1, something 2,something,3, something 4, something 5"; </cfscript> <cfdump var="#listToArray(example)#" output="browser"> I want to create an array with a length of 5. I've tried everything I can think of to keep that comma in the output. I guess I'm not thinking enough. Some things I've tried and did't work: something"",""3 something\,3 something#de(",")#3 something#chr(44)#3 something#de(chr(44))#3 Any thoughts? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:297566 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

