Of course, if you do this in CFSCRIPT then it'll be faster and have no
white-space... But now I'm being picky <g>

> -----Original Message-----
> From: Bryan Love [mailto:[EMAIL PROTECTED]
>
> In a two dimensional array the only thing you can append to
> the first dimension is another 1-dimensional array.  That
> means that in the loop you'd need to build a one dimensional
> array then append it (or something
> comparable)
>
> This would work:
>
> <cfset x = arrayNew(2)>
> <cfloop from="1" to="20" index="i">
>       <cfset x[i] = arrayNew(1)>
>       <cfset trash = arrayAppend(x[i],"foo")>
>       <cfset trash = arrayAppend(x[i],"bar")>
> </cfloop>
>
> or this:
>
> <cfset x = arrayNew(2)>
> <cfloop from="1" to="20" index="i">
>       <cfset y = arrayNew(1)>
>       <cfset trash = arrayAppend(y,"foo")>
>       <cfset trash = arrayAppend(y,"bar")>
>       <cfset trash = arrayAppend(x,y)>
> </cfloop>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to