Yea - but again, that too is unexpected behaviour in that CF doesn't
recognise empty list elements as valid, and removes them.   

> -----Original Message-----
> From: Pascal Peters [mailto:[EMAIL PROTECTED]]
> Sent: 02 November 2001 15:18
> To: CF-Talk
> Subject: RE: commas in lists
> 
> 
> Try this out
> 
> <cfoutput>
> #ListChangeDelims("aa;bb;;;cc","|",";")#<br>
> #Replace("aa;bb;;;cc",";","|","ALL")#
> </cfoutput>
> 
> Replace will replace all occurrences of ; by a |
> Listchangedelims will replace the three consecutive ; as one |
> 
> Pascal Peters
> Macromedia Certified Instructor
> Certified ColdFusion (5.0) Developer
> LR Technologies, Belgium
> Tel   +32 2 639 68 70
> Fax   +32 2 639 68 99
> Email [EMAIL PROTECTED]
> Web   www.lrt.be
> 
> 
> -----Original Message-----
> From: Rich Wild [mailto:[EMAIL PROTECTED]]
> Sent: vrijdag 2 november 2001 15:58
> To: CF-Talk
> Subject: RE: commas in lists
> 
> 
> ListChangeDelims() is wierd though in that it will allow you 
> to replace
> a
> single delimiter with multiple delimiters eg:
> 
> listchangedelims(thislist, '","', ',')
> 
> I find this unexpected behaviour in that other list functions only act
> on
> single delimiters. (ie listfind(thislist, 'myvalue', '",') uses '"' or
> ','
> as delimiters, not '",'). I would expect multiple delimiters to be not
> allowed.
> 
> I'm struggling to find the differences here between listchangedelims()
> and
> replace().
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to