Good point. Thanks, Jason
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 10:28 AM To: CF-Talk Subject: Re: Array question... You could use MOD: <cfloop from="1" to="#ArrayLen(aMyArray)#" index=i> <cfset aNewArray = ArrayNew(2)> ~<cfif i NOT MOD 2> ~~<cfset aNewArray[i][1] = aMyArray[i]> ~<cfelse> ~~<cfset aNewArray[i][2] = aMyArray[i]> ~</cfif> </cfloop> I haven't tested this, its just "off the cuff" David Murphy www.cfugcny.org = = = Original message = = = I have a single dimensional array that I want to duplicate into a 2 dimensional array. The first dimension are all odd numbers in the array and the second dimension are all the even numbers in the array. e.g. Array as it exists now... Array[1] = "One" Array[2] = "Planes" Array[3] = "Twelve" Array[4] = "Jets" Array I want to make... Array[1][1] = "One" Array[1][2] = "Planes" Array[2][1] = "Twelve" Array[2][2] = "Jets" Any thoughts? ~Jason <!--- Jason Dowdell [EMAIL PROTECTED] 321.799.6845 IM AES - Web Developer ---> ______________________________________________________________________ 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 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

