The scope can be applied to all types: simple and complex. to declare a local variable: <cfset variables.Fname = "Sam"> <!---<cfset Fname = "Sam"> is a local variable too---> if you want a structure you have to create it first <cfset variables.stNames = structNew ()> <cfset variables.stNames["Fname"] = "Sam">
Marius Milosav www.scorpiosoft.com It's not about technology, it's about people. Virtual Company (VICO) Application Demo www.scorpiosoft.com/vicodemo/login.cfm ----- Original Message ----- From: "sam komolafe" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 11:37 PM Subject: Naming Convention > Hi guys, > > Which is the better or acceptable way of naming a LOCAL variable: > > 1. <cfset Fname = "Sam"> > 2. <cfset Names.Fname = "Sam"> > > Coldfusion did not create a structure for item #2, and I can still reference > it using #variables.Names.Fname#. Can you point to a link/site on CF name > coventions > > Thanks > SAm > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

