This applies to CF5 for sure, and I think all other versions as well.
Delimiters in CF native lists are always single characters.
When reading a list, you may select multiple delimiters, but if you select
,; as the delimiters,
a,b,;c;d
is a list of a and b and c and d with an empty list element (ignored)
between b and c.
In short, if you want to use a double char as a list delimiter, you're going
to have to do it manually (or write your own UDFs to do it). CF doesn't
handle it natively.
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -----Original Message-----
: From: Smith, Matthew P -CONT(DYN) [mailto:[EMAIL PROTECTED]]
: Sent: Thursday, November 21, 2002 3:12 PM
: To: CF-Talk
: Subject: can't listappend w/ double pipe delimiter?
:
:
: <cfset request.mainNavigationList=listAppend( request.mainNavigationList,
: "oneOne|OneTwo" , "||" )>
: <cfset request.mainNavigationList=listAppend( request.mainNavigationList,
: "twoOne|twoTwo" , "||" )>
: <cfdump var="#request.mainNavigationList#"><br><cfabort>
:
: results in:
:
: oneOne|OneTwo|twoOne|twoTwo
:
: (single pipe in middle)
:
: but I want :
:
: oneOne|OneTwo||twoOne|twoTwo
:
: (double pipe in middle)
:
: I could work around by changing up the cfsets, but I would like
: to know how
: to listAppend with a double character delimeter.
:
: Thanks for any help.
: Matthew P. Smith
: Web Developer, Object Oriented
: Naval Education & Training Professional
: Development & Technology Center
: (NETPDTC)
: (850)452-1001 ext. 1245
: [EMAIL PROTECTED]
:
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm