Well what do you expect with the quality of the code I had to work with...my bad
solly
works tho?
Yeah, unlike Stephens ;-�
Incidently, "this" is a scope in CFMX, so probably best to avoid using it as a variable name.
With regards to using it with fusebox, that just makes it all the easier. No messing with multiple scopes...
<cfscript>
// stick some junk in url and form
for (i=1;i lte 10; i=i+1) {
url["var"&i] = i;
form["var"&i&i] = i*i;
}
// poor mans formurl2attributes
if (NOT IsDefined("attributes")) attributes = StructNew();
structAppend(attributes,url);
structAppend(attributes,form,"yes");
</cfscript><!--- Output the variables in the attributes scope --->
<CFLOOP list="#structKeyList(attributes)#" index="VarName" >
<CFSET MyVar= attributes[VarName]>
<cfoutput>#VarName#=#MyVar#</cfoutput><br>
</CFLOOP>Regards
Stephen
-- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
