What do you need it to do? It does pretty much what your orignal code does... Ive just moved it to a persistant scope...
-----Original Message----- From: FlashGuy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 12:44 To: CF-Talk Subject: RE: Incrementing a variable Hmm...OK I just tried it out and its not quite working the way I wanted it to. On Tue, 17 Dec 2002 12:23:20 -0000, Mike Townend wrote: > Youll need to do something like... > > In Application.cfm > > <CFLOCK TIMEOUT="5" THROWONTIMEOUT="No" TYPE="EXCLUSIVE" > SCOPE="APPLICATION"> > <CFPARAM NAME="Application.child" DEFAULT="0"> > </CFLOCK> > > And in the index file > > <CFLOCK TIMEOUT="5" THROWONTIMEOUT="No" TYPE="EXCLUSIVE" > SCOPE="APPLICATION"> > <CFSET Application.child = Application.Child + 1> > </CFLOCK> > > HTH > > -----Original Message----- > From: FlashGuy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 17, 2002 12:12 > To: CF-Talk > Subject: Incrementing a variable > > > Hi, > > For some reason I can't get my variable to increment when my page is > reloaded. > > I have the following in my application.cfm file > > <cfset child = 0> > > In my index.cfm file I have the following. > > <cfset child=child + 1> > > Everytime I refresh the page manually or by using an <a href within mu > file to reload mu index.cfm it doesn't increment? > > > > > --------------------------------------------------- > Colonel Nathan R. Jessop > Commanding Officer > Marine Ground Forces > Guatanamo Bay, Cuba > --------------------------------------------------- > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

