>
> I don't know why that function works the way that it does, but my guess is
> that it's essentially just a type of Replace function.
>
Here's my small contribution to add to the delimiter mysteries.
It's not just a ListChangeDelimters() oddity.
Everything here works, but the docs suggest that
parts of this snippet shouldn't. I think it is just
weak documentation.
<cfset first_list="apple,banana,pomegranite,kiwi fruit,ocelot">
<cfoutput>#first_list#<br></cfoutput>
<cfset newDelim=chr(135)&chr(136)>
<cfset new_list = listchangedelims(first_list, newDelim)>
<cfoutput>#new_list#<br></cfoutput>
<cfoutput>#ListGetAt(new_list,2,newDelim)#<br></cfoutput>
<cfoutput>#ListFind(new_list,"ocelot",newDelim)#<br></cfoutput>
<cfset new_list= ListAppend(new_list,"orange")>
<cfoutput>#new_list#<br></cfoutput>
<cfset m0=ListFind(new_list,"orange",",")>
<cfoutput>#m0#<br></cfoutput>
<cfset m1=ListFind(new_list,"kiwi fruit",",#newDelim#")>
<cfoutput>#m1#<br></cfoutput>
<cfoutput>#Listlen(new_list)#<br></cfoutput>
<cfset l1=Listlen(new_list,",#newDelim#")>
<cfoutput>#l1#<br></cfoutput>
Pan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists