It should be noted that 'var' scoping is also very important for UDFs as well (and follows the same rules).
======================================================================= Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc Email : [EMAIL PROTECTED] WWW : www.camdenfamily.com/morpheus Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 3:07 PM > To: CF-Talk > Subject: CFC - Var vs. This > > > Alright, > > So Christian says to declare all of your private CFC > variables at the top of the function like so <cfset var value > = 1>. Hal Helms recommends using <cfset this.value = 1>. Both > obviously work, but I'm wondering what the pros and cons are if any. > > Off the top of my head, it would seem that 'this' is more > functional, as it acts like any other scope and can be dumped. > > Adam Wayne Lehman ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

