If I am explicitly telling CF that the delimiter is two pipes, why would it 
stop when finding only one?  I tried this with other delimiters and found the 
same behavior.  Am I crazy or does this appear to be a bug?


NOPE, it is not a bug but defiantly not an intuitive way for this to work.    
But it is explained this way in the documentation.  When you provide a list of 
delimiters it is not an AND list, it is an OR list.  That means the list will 
be broken on any single character in the list.  See if this example does not 
clarify the behavior for you a little bit.


<cfset myList = 'element 1|element2,element3'>

Single list using '|' OR ',' as delim <br><br>
length = #listLen(myList, '|,')# <br>  
element1 = #listFirst(myList, '|,')# <br> 
element2 = #listGetAt(myList, 2, '|,')# <br>
element3 = #listLast(myList, '|,')# <br> 
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267728
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to