Sorry, what is wrong with parameterExists()?  Has it been depreciated
without me knowing?

--
Jay 

> -----Original Message-----
> From: Adam Haskell [mailto:[EMAIL PROTECTED] 
> Sent: 17 January 2005 17:17
> To: CF-Talk
> Subject: Re: Dynamic variable name (WAS: XML Variable Issue)
> 
> <useless_rant>
> ok unless you sare on some ooollllddd version why would you 
> be using this function....parameterExists....
> </useless_rant>
> 
> Adam H 
> 
> On Mon, 17 Jan 2005 17:08:03 -0000, James Smith 
> <[EMAIL PROTECTED]> wrote:
> > 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
> > > ...
> > 
> > 
> > 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: 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:190777
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to