If you want to save a value you could always write it to a file. You could write it to a text or configuration file and then you could read the values from the file at any other time in your program. Below is a link to a tutorial on how to create configuration files. If it is just one variable that you want to keep track of you could just use a simple text file instead.
Implementing Configuration Files for Computer Based Data Acquisition Systems http://zone.ni.com/devzone/conceptd.nsf/webmain/0AB7464222D600D7862570610063F2B6