> Dave, if this is the case (which I don't doubt), then why
> will this work:
>
> <cfset first_list="apple,banana,pomegranite,kiwi fruit,ocelot">
> <!--- comma delimiter --->
> <cfoutput>#first_list#</cfoutput><br>
>
> <cfset new_list = listchangedelims(first_list, ", ")>
> <!--- comma space delimter --->
> <cfoutput>#new_list#</cfoutput>
>
> Granted if you perform a listgetat on the new_list with
> delims as ", " eg: <cfset kiwivar = listgetat(new_list, 4, ", ")>
> it will only pick up 'kiwi' and not 'kiwi fruit' as it uses
> the space as an optional delimiter rather than space comma,
> but isn't it odd that the change delims works?
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.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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