It can't be done. The CF List functions / features interpret the delimiter
variable as a string of possible single-character delimiters, rather than as
a single multi-character delimiter, so to
ListFind("x,y|z","z",",|")
z is in the 3rd element
conversely, ListFind("x,y|z","y|z",",|") returns zero because there is no
list element "y|z" because "|" is a possible single character list
delimiter.
So because the other list functions work this way, ListAppend() will only
insert probably the first character in the string for delimiter.
You can, however, use non-printing characters like the ASCII bel as list
delimiters, which can be helpful if you have a list of user-input data and
aren't sure what it might contain.
s. isaac dealey 954-776-0046
new epoch http://www.turnkey.to
lead architect, tapestry cms http://products.turnkey.to
certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
> <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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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