Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global variables timing out??

Status
Not open for further replies.

Jorgandr

Programmer
May 10, 2002
58
US
Do global variables have a time out limit? I find when I set a global variable it loses the value after a certain amount of time. Is there anyway to hold that value the whole time they have the application open??
 
Hi!

Global variables should maintain their value while the application is running code. If, for any reason, the Db stops running code (such as going into any design view or unhandled errors) then the global variables lose their values. I usually set up a form that I keep my 'global variables' on in text boxes.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Where are you defining the global variables? They need to be defined in something that is always open and available like the standard module in the application. If you put a public variable in a Form and the Form closes the value is gone - could this be happening.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top