It looks like you're resetting the variable each time a page loads.... Use cfparam instead to set it once if you choose to place the init in application.cfm Also, you need to think about variable scope... Rgds
Paolo Cesana IT Development Mgr. "Electricity is not the result of a series of upgrades to the candle" Auth. unknown Miami International Forwarders (MIF) Phone: (305)594-0038 Ext. 7326 Fax: (305)593-0431 mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> http://www.mif.com <http://www.mif.com/> -----Original Message----- From: FlashGuy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 7:12 AM 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 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

