You know, all that replacelist does is loop, you could do the same thing with a cfloop. Although it would be much simpler if you could just define the delimiter in replacelist.
<cfset coun=1> <cfset newlist = "1|2|3|4|5"> <cfset oldlist = "a|b|c|d|e"> <cfloop list="#oldlist#" index="I" delimiter="|"> <cfset list1 = Replace(oldlist, I, listgetat(newlist,coun,"|"))> <cfset coun = coun + 1> </cfloop> _____________________________ steve oliver senior internet developer atnet solutions, inc. http://www.atnetsolutions.com -----Original Message----- From: Jim McAtee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 8:45 PM To: CF-Talk Subject: ReplaceList() with a different delimiter? I never really noticed this until now, but ReplaceList() doesn't accept an optional delimiters argument, as do the list functions. (Alright, so technically it's not a list function since it doesn't operate on a list). In my lists I need to have strings that may contain commas. Is there a clever workaround that would still let me use ReplaceList(), or am I stuck with concocting a string of Replace() calls. I expect ReplaceList(), when doing a dozen or more substitutions would have been faster. Jim ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

