Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic variables

Status
Not open for further replies.

ice78991

Programmer
Joined
Nov 20, 2006
Messages
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>
 
You might want to ask on: forum232

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
[blush] dang.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top