On Apr 1, 2005 3:46 AM, Mike Kear <[EMAIL PROTECTED]> wrote: > But in reading the discussions here I thought it was now considered > poor practice to use the THIS scope in CFCs, and instead using the > variables scope was the thing to do.
Correct. variables scope is better than this scope in general because you want to maintain encapsulation (not expose your internal data). > But in the CF7 documentation, the examples and literature about > Application.cfc are advocating using the THIS. scope for many things. Application.cfc is 'special' but it turns out that you can use variables scope anyway. -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:201202 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

