House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Incrementing a variable

Author:
Mike Townend
12/17/2002 07:57 AM

What do you need it to do? It does pretty much what your orignal code does... Ive just moved it to a persistant scope... Hmm...OK I just tried it out and its not quite working the way I wanted it to. > 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 > > 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 > --------------------------------------------------- > > > > >


Search cf-talk

June 18, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference