ah, my mistake..... it is the other way around :-) duh...
-----Original Message-----
From: Robertson-Ravo, Neil (REC)
Sent: 02 August 2002 09:29
To: '[EMAIL PROTECTED]'
Subject: Increments
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
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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