Hello all,
I have another indirect reference question...
I am inside an instantiated CFC. The CFC has a variable called
THIS.subMenuVisibility which is an array to hold 1 of 2 words,
either Visible or Invisible. I amtrying to set elements of this
array by indirect reference.
The code to do
Hello all,
Happy New Year. I hope everyone had a safe and enjoyable holiday.
I am trying to set a variable indirectly, i.e., I have a variable
that contains the name of the variable I want to set. How do you
accomplish this?
Thank you in advance.
Robert J. Polickoski
Senior Programmer,
I am trying to set a variable indirectly, i.e., I have
a variable that contains the name of the variable I want
to set. How do you accomplish this?
You can use the SetVariable function, or use a string within a CFSET:
cfset myvar = foo
cfset rs = SetVariable(myvar, foovalue)
or
cfset
: Wednesday, January 01, 2003 1:23 PM
To: CF-Talk
Subject: indirect reference
Hello all,
Happy New Year. I hope everyone had a safe and enjoyable holiday.
I am trying to set a variable indirectly, i.e., I have a variable
that contains the name of the variable I want to set. How do you
4 matches
Mail list logo