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 this is:

                <cfdump var="#ArrayLen(THIS.Inputs)#">
                <cfdump var="#THIS.Inputs#">
                <cfloop index="InputTypeIndex" from="1" 
to="#ArrayLen(THIS.Inputs)#">
                        <cfset MenuName 
= "THIS.subMenuVisibility.ulInputType" & THIS.Inputs
[InputTypeIndex][1] & "Menu">
                        <cfdump var="#MenuName#">
                        <cfif NOT isDefined("#MenuName#")>
                                <cfdump var="Inside #MenuName#">
                                <cfset #MenuName# = "Invisible">
                                <cfdump var="#evaluate("MenuName")
#">
                        </cfif>
                </cfloop>


The results are:

THIS.subMenuVisibility.ulInputTypeInputCheckBoxMenu Inside 
THIS.subMenuVisibility.ulInputTypeInputCheckBoxMenu Invisible 
THIS.subMenuVisibility.ulInputTypeInputRadioMenu Inside 
THIS.subMenuVisibility.ulInputTypeInputRadioMenu Invisible 
THIS.subMenuVisibility.ulInputTypeInputSelectMenu Inside 
THIS.subMenuVisibility.ulInputTypeInputSelectMenu Invisible 
THIS.subMenuVisibility.ulInputTypeInputTextMenu Inside 
THIS.subMenuVisibility.ulInputTypeInputTextMenu Invisible 
THIS.subMenuVisibility.ulInputTypeInputTextAreaMenu Inside 
THIS.subMenuVisibility.ulInputTypeInputTextAreaMenu Invisible 
(The cfdump of the array)
struct 
ULAUTHORMENU Invisible 
ULCONTENTMENU Invisible 
ULFORMMENU Invisible 
ULINPUTMENU Invisible 
ULPROCESSMENU Invisible 
ULSTEPMENU Invisible 


It appears to me that I am setting a variable that is titled what 
I want; it just isn't an element of the array like I want.  If 
anybody has any ideas, I would be most appreciative.

Thank you in advance.

Robert J. Polickoski
Senior Programmer, ISRD Inc.
(540) 842-6339
[EMAIL PROTECTED]
AIM - RobertJFP 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to