There are list functions to do this stuff

listChangeDelims(list,  new_delimiter ,  delimiters )


now if your list items actually have commas or what ever your using as the
delimiter in them, then you will have to either use a different delimiter or
deal with the list items prior to creating or inserting them into the list
string

Steve



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brett
Payne-Rhodes
Sent: Wednesday, June 30, 2004 1:54 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: replace comma

Hi Alistair,

Just put the comma between the quotes and it should work fine. I haven't 
used 'replaceList' but it works in 'replace':

<cfset theString = "a,b,c,d">
<cfset theString = replace(theString, ",", ";", "all")>

<cfoutput>#theString#</cfoutput>

should result in a;b;c;d

I assume it will be ok in replaceList.

hth

Brett
B)

Alistair Fox wrote:
> Does anyone now how to replace a , in a list with something else. CF us
> the comma as a delimeter in the replacelist function. So how do i replace
> a , when it interprets it as another delimeter
> #ReplaceList(var," ,/,,","_,_,_")#
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 


-- 
Brett Payne-Rhodes
Eaglehawk Computing
t: +61 (0)8 9371-0471
f: +61 (0)8 9371-0470
m: +61 (0)414 371 047
e: [EMAIL PROTECTED]
w: www.ehc.net.au


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to