<cfset arrayInsertAt(ADListArrNew, 4, arrayNew(1))> <cfset arrayAppend(ADListArrNew[4], 'Sue')> <cfset arrayInsertAt(ADListArrNew, 5, arrayNew(1))> <cfset arrayAppend(ADListArrNew[5], 'Kim')>
Works well You're trying to insert a position into an array that doesn't exist. You need to create the array with <cfset arrayInsertAt(ADListArrNew, vCurRow, arrayNew(1))> and then append your value to the new array. <cfset arrayAppend(ADListArrNew[vCurRow], 'Sue')> -----Original Message----- From: Charles Heizer [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 1:32 PM To: CF-Talk Subject: Re: ArrayInsertAt Question So if this is my array ... <cfset ADListArrNew[1] [1] = "John"> <cfset ADListArrNew[2] [1] = "Jeff"> <cfset ADListArrNew[3] [1] = "Jack"> <cfset ADListArrNew[4] [1] = "Jed"> <cfset ADListArrNew[5] [1] = "Jim"> And I want to add two names after Jack ( Sue, Kim)... <cfset RowLoc="3"> <cfloop query="GetADListNew"> <cfset vCurRow = RowLoc + currentrow> <cfset ArrayInsertAt(ADListArrNew[vCurRow],1, #GetADListNew.name#)> </cfloop> Is the variable vCurRow not supported? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:193911 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