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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store String variable after application closes

Status
Not open for further replies.

aw23

Programmer
Nov 26, 2003
544
IL
I have 2 forms, a main form and a samll form which is opened from the main form but is not a subform. All users have access to the main form and the other one is an admin form. In the admin form, the admin selects a file. I then save the file name in a string and when any user clicks on a button in the main form, the file is displayed. I tried storing the string in a txtbox but it gets cleared out when the application is shut down. I need it to remain there until the file is changed by the Admin. I tried saving it in the tag but that also clears out. I tried to store it in a public variable but I am having trouble accessing it from the main page. There must be a simple solution!

Thanks
 
I got it to work. I created a public variable in a module. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top