|
-
Jan 23rd, 2010, 11:07 PM
#1
Thread Starter
Fanatic Member
[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.
-
Jan 24th, 2010, 12:23 AM
#2
Member
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
-
Jan 24th, 2010, 12:25 AM
#3
Thread Starter
Fanatic Member
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.
-
Jan 24th, 2010, 01:06 AM
#4
Member
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.
-
Jan 24th, 2010, 05:31 AM
#5
Re: Change variable and save for next opening of the program! Help!
 Originally Posted by Gamemaster1494
I dont want another file, i just want it to save it within the program.
You can't! 
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.
-
Jan 24th, 2010, 11:00 AM
#6
Thread Starter
Fanatic Member
Re: Change variable and save for next opening of the program! Help!
Oh..... That stinks.... Ok. Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|