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 ---> ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists