|
-
Sep 22nd, 2000, 11:17 AM
#1
I have an application written in VB6 (Enterprise Edition) with one form and all sorts of code to do all sorts of things.
One piece is to change the default values on startup within the form. I know that there are at least two ways to reset defaults, but I don't know how to perform them.
1. Save the form so that the new defaults will come up on load, automatically. I don't know that this can be done in an exe. At least, I can't find the command to do it.
2. I am perfectly willing to write, read and modify a textfile holding the default values. How do I guarrantee that the file will be findable? I really don't wish to use "C:\Windows.... unless absolutely necessary.
Thank You
DerFarm
-
Sep 22nd, 2000, 11:25 AM
#2
Frenzied Member
Actually, you're answering Q1 in Q2 
Write all the values to a file (or registry, but I personally prefer a file (INI if you want)) and load them at start of the prog.
You can store the file at App.Path (the path where the prog is located) if you want!
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Sep 22nd, 2000, 11:30 AM
#3
Got it!
Most excellent.
It is JUST what I wanted.
Thanks
DerFarm
-
Sep 22nd, 2000, 11:33 AM
#4
Frenzied Member
Is that meant cinically or do you really have enough info?
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|