Since I need this functionality also, I wrote a little function that behaves
like the VB Split function, allowing the use of multiple character
delimiters:
<cfscript>
function vbSplit(string,delimiter) {
var returnArray = ArrayNew(1);
var i = 1;
var offset = len(delimiter);
var nextitem = find(delimiter,string);
while(nextItem GT 0){
arrayappend(returnarray,mid(string,i,nextitem-i));
i=nextitem + offset;
nextItem = find(delimiter,string,i+1);
}
if(len(string) GT i) arrayappend(returnarray,right(string,len(string)-i +
1));
return returnArray;
}
</cfscript>
tom
"Thomas Muck" <[EMAIL PROTECTED]> wrote in message
3c4f0cd3$[EMAIL PROTECTED]">news:3c4f0cd3$[EMAIL PROTECTED]...
> Damn, you learn something every day. ;-)
>
> tom
>
> "Raymond Camden" <[EMAIL PROTECTED]> wrote in message
> news:021f01c1a424$5ec6f680$[EMAIL PROTECTED]...
> > Um, no, you are wrong. The second arg to listtoarray specifies a list of
> > delimiters. Every character passed will be used. When you pass:
> > <P><P><I> you are essentially saying to use
>
>
>
______________________________________________________________________
Get Your Own 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=coldfusionb
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