> > <cfset VARIABLES["confirmrestrictionsite1_#primernum#"] =
> > ucase(VARIABLES["confirmrestrictionsite1_#primernum#"])>
> >
> > or
> >
> > <cfset VARIABLES["confirmrestrictionsite1_" & primernum] =
> > ucase(VARIABLES["confirmrestrictionsite1_" & primernum])>
>
> 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.
This indicates that the variable doesn't exist in the first place. Forget
about the variable name for a bit. Let's say you have something like this:
<cfset foo = Ucase(foo)>
If the variable foo doesn't exist in the first place, you're going to get
that error.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:209061
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54