[RESOLVED] Change variable and save for next opening of the program! Help!
Im making a program for my mom. I need to know how to have a variable be saved to the program, then when the program is loaded again, it will have that variable's data loaded just like it was saved the last time. Please help me.
Re: Change variable and save for next opening of the program! Help!
Google .cfg files for code there's a few great examples I use all the time
Re: Change variable and save for next opening of the program! Help!
I dont want another file, i just want it to save it within the program.
Re: Change variable and save for next opening of the program! Help!
You could set up a registry key on a install then. But then the program's .exe can't be copied on to another machine and work.
Re: Change variable and save for next opening of the program! Help!
Quote:
Originally Posted by
Gamemaster1494
I dont want another file, i just want it to save it within the program.
You can't! :D
Because persistent information must be write to a File or to Registry.
You can use SaveSettings() and GetSettings() VB methods to save and load into Registry any information you want make persistent.
:wave:
Re: Change variable and save for next opening of the program! Help!
Oh..... That stinks.... Ok. Thank you.