Question
Dynamic Variables
I want to display the value of a dynamically generated
variable...I can't figure out how to do it, is it even possible?
<cfset variable_name = "red">
<cfset "variable_color_#variable_name#" = "The color is red">
<cfset full_variable = "variable_color_#variable_name#">
I want the output of "full_variable" to be the value of the dynamic variable created, "The color is red". Is it possible?
Thanks,
Paul
<cfset variable_name = "red">
<cfset "variable_color_#variable_name#" = "The color is red">
<cfset full_variable = "variable_color_#variable_name#">
I want the output of "full_variable" to be the value of the dynamic variable created, "The color is red". Is it possible?
Thanks,
Paul
