the concept you are looking for is called a closure
In reply to Re: increasing value every time sub routine called by jethro in thread increasing value every time sub routine called by bigmoose