I would not recommend using cfparam to initialize foo. Is it defined previously or is it not? If it is, you will get odd results. If it isn't, then there is no need to use cfparam. As to using cfset foo = foo + 1 vs IncrementValue I would be willing to bet that the difference in the long-run is negligible.
At 09:28 AM 8/2/2002 +0100, you wrote: >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

