Assuming CFMX, use the array's container struct (probably VARIABLES in this case):
VARIABLES["EmployeAry_" & EmployeeNumber][RowNu_][1] = CalendarInfo.EmployeeNumber[CurRow]; -----Original Message----- From: Mike Hughes [mailto:[EMAIL PROTECTED] Sent: Thursday, 2 June 2005 11:06 To: CF-Talk Subject: Dynamic array names HELP!!!! Hi all I am building a few arrays on one template using the data from one query. I made the arrays with no problem, but CF is giving me a "not a valid variable name" error. I need to call and add to an array name Dynamically. // Check to see if it is an array writeoutput(IsArray(Evaluate("EmployeAry_#EmployeeNumber#"),2)); This works, but I do not know the Employee Number everytime. EmployeAry_116["#RowNu_#"][8] = CalendarInfo.EmployeeNumber[CurRow]; This does not work, But I need to call the Dynamic array names "EmployeAry_#EmployeeNumber#[#RowNu_#][1]" = CalendarInfo.EmployeeNumber[CurRow]; Can someone give my the right syntax. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208314 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

