Wow. Sure, it could be done differently as in the java/javascript split() methods but:
a) it was done this way for a reason, it has its use - it was *deliberate* (not a bug) b) changing it could/would have serious backward compatibility implications c) creating a custom UDF to handle this is extremely simple d) if adobe should do anything, it might be to supply the above UDF as a built in function My tuppence, Dominic 2008/6/5 Andrew Scott <[EMAIL PROTECTED]>: > Yeah I realise that it is or has been that way for a long time. > > Just because it has, does it mean it is not a bug? > > The thing is that we live in a world of comma deliminated files. The point > is who says that this has to be one character? > > Allaire/Macromedia/Adobe? > > This is the first time I have seen more than one character used, and I will > have to say that the ENGINE (that means smith, openBD, railo and Adobe) > needs to adopt the changing market. > > > > > On Fri, Jun 6, 2008 at 1:39 AM, Didgiman <[EMAIL PROTECTED]> wrote: > >> It's always been like this. Since CF 4.5 or earlier afaik. >> What makes you think it's a bug? >> >> On Thu, Jun 5, 2008 at 5:35 PM, Andrew Scott <[EMAIL PROTECTED]> >> wrote: >> >> > no need for the scope variables if not in a function. >> > >> > Point taken, but it is a bug as far as I am concerned. >> > >> > >> > On Fri, Jun 6, 2008 at 1:33 AM, morgan l <[EMAIL PROTECTED]> wrote: >> > >> > > The "delimiter' parameter is not used as a literal string, but as a >> group >> > > of >> > > individual delimiters. Run this sample code, and you'll clearly see >> that >> > is >> > > does not do what you might expext of it. >> > > >> > > >> > > <cfset variables.TestList = "qu_45_tb_45_split_0_split_q_67"> >> > > >> > > <cfset variables.SplitTest = ListToArray(variables.TestList,"_split_")> >> > > >> > > <cfdump var="#variables.SplitTest#"> >> > > >> > > >> > > On Thu, Jun 5, 2008 at 10:15 AM, Andrew Scott < >> > [EMAIL PROTECTED]> >> > > wrote: >> > > >> > > > So let me get this right. >> > > > >> > > > You looked at the manuals / cfdocs, and you couldn't work out this: >> > > > >> > > > <cfset myArray = listToArray(myList, '_split_') /> >> > > > >> > > > Seems to me that what you have described, is the way to go... Is it >> > not? >> > > >> > > >> > > >> > >> > >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306895 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

