I am running MX, however both of these constructions throw an error:
"Element confirmrestrictionsite1_1 is undefined in a Java object of type
class coldfusion.runtime.VariableScope referenced as "
There is also the general problem of how to specify the value of a variable
when part of the variable name is also a variable, like
<loop>
<input ... Value="#('confirmrestrictionsite1_#primernum#')# ...>
Which does not work BTW.
Any ideas would be appreciated!
-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 6:54 PM
To: CF-Talk
Subject: RE: MORE: Naming variables within a loop
<cfset VARIABLES["confirmrestrictionsite1_#primernum#"] =
ucase(VARIABLES["confirmrestrictionsite1_#primernum#"])>
or
<cfset VARIABLES["confirmrestrictionsite1_" & primernum] =
ucase(VARIABLES["confirmrestrictionsite1_" & primernum])>
etc (assuming CFMX).
-----Original Message-----
From: Richard Colman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 9 June 2005 9:04
To: CF-Talk
Subject: MORE: Naming variables within a loop
Thank you. That part is working, but this is starting to give me a headache.
How about:
<cfset "confirmrestrictionsite1_#primernum#" =
#ucase(confirmrestrictionsite1_primernum)#>
Of which I have tried several variations ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:209056
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54