On Friday, August 2, 2002, at 06:37 , Raymond Camden wrote:
> Correct. There are good places for incrementvalue and decrementvalue.
> One example - a "next" link. Normally you may do:
>
> <cfset nextPage = url.page + 1>
> <a href="foo.cfm?page=#nextPage#">
>
> But it's a bit simpler to do:
>
> <a href="foo.cfm?page=#incrementValue(url.page)#">

Although these are *not* equivalent pieces of code are they? In the first 
fragment, url.page is left with its current value, in the second, it is 
incremented.

I personally really don't like incrementValue(), especially since you can 
do:

        <a href="foo.cfm?page=#url.page + 1#">

(in CFMX).

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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