> > 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.
Um. No. incrementValue _returns_ the higher value. It doesn't change url.page. If you cfoutput url.page after this code, it is not changed. ======================================================================= Raymond Camden, ColdFusion Jedi Master for Macromedia Email : [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.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

