Another Indirect Reference question

2003-01-09 Thread Robert Polickoski
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

indirect reference

2003-01-01 Thread Robert Polickoski
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,

RE: indirect reference

2003-01-01 Thread Dave Watts
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

RE: indirect reference

2003-01-01 Thread Samuel Neff
: 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