You can't have multi-character delimiters...thanks for trying.

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 10:16 AM
To: CF-Talk
Subject: Re: listtoarray?

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?



On Fri, Jun 6, 2008 at 1:01 AM, Richard White <[EMAIL PROTECTED]> wrote:

> Hi
>
> we have various string values like the following:
>
> qu_45_tb_45_split_0_split_q_67
>
> we need to break this string down into 3 array elements and split it 
> based on the string '_split_'
>
> if the listtoarray function used this actual sequence to break the 
> string up then we would be given an array:
>
> elem[1] = qu_45_tb_45
> elem[2] = 0
> elem[3] = q_67
>
> which is how we need it. but of course the listtoarray uses each 
> string charaacter as a delimeter to break the string down and 
> therefore doesnt produce what we need
>
> is there an alternative that we can use that will break this down 
> based on the entire sequence '_split_'
>
> we have looked through the livedocs and are sure this is achievable 
> through the uses of 2 or 3 functions but cannot worj out quiet how to 
> do it
>
> thanks for your help
>
> richard
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:306908
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to