Well most of us know why we should var the local variables inside a cfc function, but my question was, are there tools that help you find unvared variables?
I though I saw something somewhere at one point but can't seem to find it. Russ > -----Original Message----- > From: Denny Valliant [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 10, 2006 7:21 AM > To: CF-Talk > Subject: Re: check for unvared variables in a cfc > > Yeah, where it totally kills you is recursive functions. You /gotta/ var > those! > :D > > On 8/10/06, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > > > On Wednesday 09 August 2006 23:18, Munson, Jacob wrote: > > > If you have another variable with the same name as a CFC variable in > the > > > same scope, your CFC's variable values could 'bleed' into your other > > > scope variable. > > > > That's about it - typical things that happen are that query results or > > loop > > iterators ('i') suddenly become invalid partway through a method. > > This means you have to var *every* variable used in a CFC method - > > including > > cfhttp results, loop indexes, query names etc. > > > > -- > > Tom Chiverton > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:249431 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

