hey hey hey now.  microphone check it, yo.  i'm gonna have to strap on 
my
correction boots and do a little stomp-down;

the ONLY reason your example worked is that the delimiters are CASE
sensitive.  what really happened is that <,>,P, and I all delimited 
empty
string values when in sequence, so those values were not appended to 
the
array.  HOWEVER, try changing your myvar to this and watch what 
happens:

<cfset myvar="USE<P><P><I>THESE<P><P><I>DELIMITERS">

then scratch your head and go take so more french classes.

*smooches*

doomo arigato.

brendan avery 2.0 - [EMAIL PROTECTED]
310.779.2211 - santa monica, california

> -----Original Message-----
> From: Thomas Muck [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 23, 2002 07:30
> To: CF-Talk
> Subject: Re: split
> 
> 
> > FYI tom; coldfusion, sadly, can not have multi-character 
delimiters.
> > the
> > delimiters field of any of the List functions in ColdFusion 
> is treated
> > as a
> > set of single-character delimiters, not as a single 
> delimiting string.
> > so
> > "<P><P><I>" is treated as "<>PI" for all intents and 
> purposes.  brent
> 
> Pardon my french, but bullcr**  ;-)
> 
> Put this code on a page:
> 
> <cfset myvar = "use<P><P><I>these<P><P><I>delimiters">
> <cfset myarray = listtoarray(myvar,"<P><P><I>")>
> <cfoutput>
> first: #myarray[1]#<br>
> second: #myarray[2]#<br>
> third: #myarray[3]#<br>
> </cfoutput>
> 
> 
> tom
> 
> 
> 

______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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