Sorry, one more mistake...

<cfset myList = Replace('qu_45_tb_45_split_0_split_q_67', '_split_', ',',
'ALL')>

On Thu, Jun 5, 2008 at 5:09 PM, Didgiman <[EMAIL PROTECTED]> wrote:

> Sorry, should be
> <cfset myList = Replace('qu_45_tb_45_split_0_split_q_67', '_split_', ',')>
> (forgot an underscore after split)
>
>
> On Thu, Jun 5, 2008 at 5:08 PM, Didgiman <[EMAIL PROTECTED]> wrote:
>
>> <cfset myList = Replace('qu_45_tb_45_split_0_split_q_67', '_split', ',')>
>> <cfset aMyList = ListToArray(myList)>
>>
>>
>> On Thu, Jun 5, 2008 at 5:01 PM, 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:306881
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to