Convert A String To A Variable in Coldfusion -


i using cfloop generate titles of bunch of variables.

problem on output actual variable name ie #qquery.varname# instead of value ie "item name".

heres quick taste of code:

<cfloop query="qquery"> <cfloop query="qtest"> <cfset vartest = "qquery." & varname> <cfoutput>#vartest#</cfoutput> </cfloop> </cfloop> 

thanks :)

try this:

<cfset vartest = qquery[varname]> 

Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

jQuery clickable div with working mailto link inside -