I need it to work in CF5. We do not have CFMX running on my server, for now. This did work in CFMX but not in CF5.
On 6/1/05, James Holmes <[EMAIL PROTECTED]> wrote: > 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. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:208315 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

