Although <cfoutput>#Config.SiteConfig.SiteSections[Sections.Name]#</cfoutput> works fine! HELP! How can one error and the other work! I don't get it!
-- Jay > -----Original Message----- > From: James Smith [mailto:[EMAIL PROTECTED] > Sent: 17 January 2005 17:08 > To: CF-Talk > Subject: RE: Dynamic variable name (WAS: XML Variable Issue) > > Unfortunately... > > <cfif parameterExists(Config.SiteConfig.SiteSections[Sections.Name])> > > Throws an error (Invalid CFML construct found on line 13 at > column 83.) > > -- > Jay > > > Bracket [] notation. > > > > Config.SiteConfig.SiteSections[Sections.Name] > > > ...If the SectionName is dynamic, how would you access the variable? > > ... > > ...For example the Variable name > > ..."Config.SiteConfig.SiteSections.UserManager.XmlText" has the > > ..."UserManager" > > ...part in another variable called "Sections.Name". I have > tried many > > ...options ...and variations with no success and I know > this is easy > > as I have done it ...before (although not from XML) and I can't > > remember how! > > ... > > ...EG: > > ...<cfif > > parameterExists(Config.SiteConfig.SiteSections.#Sections.Name#)> > > ...<cfif > > parameterExists(evaluate("Config.SiteConfig.SiteSections." & > > ...Sections.Name))> ... > > ...-- > > ...Jay > > ... > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190776 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

