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

How do I miss these things? First I heard of it !!...Cool.



-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]] 
Sent: Friday, August 02, 2002 10:41 AM
To: CF-Talk
Subject: Re: Increments 

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


______________________________________________________________________
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

Reply via email to