> Hmm I always know the contents of the damn variable.
> I was hoping there would be a way to rename the variable, sorta like an
>
> <cfset foo = attributes.output>
> <cfset evaluate(de(foo)) = evaluate(variables.bar)>
2 ways to set a dynamic variable;
<cfset "#foo#"=Evaluate(variables.bar)>
<cfset tmp=SetVariable(foo,Evaluate(variables.bar))>
The first isn't recommended to use too much as it might become depreciated
in later versions - it's not guaranteed, but best to be careful
In CFScript, the second is the only method, although you don't need the
"tmp=" part of it;
<cfscript>
SetVariable(foo,Evaluate(variables.bar));
</cfscript>
Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133
"Websites for the real world"
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists