Oops, Apparently I didn't read the example given quite thoroughly enough...
sorry for any confusion I may have contributed to. Just trying to spread the joy! (Or, welcome to my world!) ;) J On Mon, 28 Mar 2005 00:16:58 -0500, Jim Davis <[EMAIL PROTECTED]> wrote: > > -----Original Message----- > > From: Johnny Le [mailto:[EMAIL PROTECTED] > > Sent: Sunday, March 27, 2005 10:43 PM > > To: CF-Talk > > Subject: Re: Best practice question? > > > > This sounds great, but isn't the args variable has its own scope too? It > > is variables scope, isn't it? Since it declares locally in the function, > > I am not sure if its scope is variables, but it has a scope of something. > > So if you have scope everything, you would have to do > > variables.args.MaxCount, right? > > No - in the case presented (since the "var" keyword was used) "args" is in > the "function local" (also called the unnamed scope). It is NOT in the > variables scope and can't be accessed using it. > > The function local scope is persistent only during the current iteration of > the function and is then gone. The variables scope is persistent to the > instantiated life of the CFC (which can be quite a long time if the CFC is > kept in a shared memory scope). -- Continuum Media Group LLC Burnsville, MN 55337 http://www.web-relevant.com http://www.web-relevant.com/blogs/cfobjective ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): 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:200189 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

