Yes, as noted - Ray blogged about this kind of tool yesterday. I also like the "using your eyes" approach.
"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Russ To: CF-Talk Sent: Thu Aug 10 14:13:59 2006 Subject: RE: check for unvared variables in a cfc 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:249433 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

