ice78991
Programmer
- Nov 20, 2006
- 216
I am using the following code to create a dynamic variables.
It works ok but I just wanted to check that its ok stylistically ( or is there a more elegant varsion )
It appears that <cfset variables["#mystr#_value"] = "val">
does not have to be in a <cfoutput> block
<cfset mystr = "box">
<cfset variables["#mystr#_value"] = "val">
<cfoutput>#variables["box_value"]#</cfoutput>
It works ok but I just wanted to check that its ok stylistically ( or is there a more elegant varsion )
It appears that <cfset variables["#mystr#_value"] = "val">
does not have to be in a <cfoutput> block
<cfset mystr = "box">
<cfset variables["#mystr#_value"] = "val">
<cfoutput>#variables["box_value"]#</cfoutput>