<cfset setvariable("newvariable"&id,value)> which reads better in cfscript
or <cfset variables["newvariable"&id] = value> umm... I'm sure there are other ways too, just don't use evaluate() ;o) Stephen ----- Original Message ----- From: "Ryan Mitchell" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, August 21, 2003 12:50 PM Subject: naming a variable from another... > Hello > > I need to name a variable using the value of another variable in the name... > > Eg > > I have a variable called id and I want to do this > > <cfset newvariable_#id# = value> > > But it won't let me :) > How do you do this? > > TIA, > Ryan > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 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