why not just add the lists together first and then create the array
<cfset finalArr = listToArray("1,2,3" & "," & "4,5,6")>
this will only work for simple 1d arrays tho... if you've got objects
or whatnot then you'll have to append.
G
On 9/22/05, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> there's likely a UDF on cflib.org...but it also likely just loops and
> appends for each iteration of the loop :)
>
> On 9/21/05, Daniel Kessler <[EMAIL PROTECTED]> wrote:
> > <cfset my_ar = listToArray("1,2,3")>
> > <cfset second_ar = listToArray("4,5,6")>
> >
> > I want these two arrays to be combined into one array. The only
> > solution that I see is to loop through the second array and append it
> > into the first. Is there another way?
> >
> > thanks
> >
> > --
> > Daniel Kessler
> >
> > Department of Public and Community Health
> > University of Maryland
> > Suite 2387 Valley Drive
> > College Park, MD 20742-2611
> > 301-405-2545 Phone
> > www.phi.umd.edu
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218917
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54