Hi Ryan,

You have lots of options:

<cfset "newvariable_#id#" = value>
or
<cfset SetVariable( "newvariable_#id#", value )>

...and I am sure there are plenty more options out there. Of the two choices above, 
the first one is the best-performing.

Good day
Mike Mertsock
Alfred University Web Team

>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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

Reply via email to