Opinions please...

I have unenviable task of going through an old app and getting together some
kind of spec from which it can be improved.....  I am noticing a hell of a
lot of variable increments performed in the following way : 

<cfset foo = 0>
<cfloop......>
        <!--- loop data --->
<cfset foo = foo + 1>
</cfloop>

now, generally I would use IncrementValue(foo) for this procedure, and in
fact I have also noted that the CF best practice is to use this as well.....
comments anyone? would anyone do differently?  is setting foo = 0 good
practice or is it better to set foo with a <cfparam>?

Neil
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to