-
INI Files
How do you create INI Files to store and read initialization information in
VB? I would like to create an option where users of an application can save
preferences, and have those saved preferences come up when they load the
application. Are there any web sites that provide more insight into INI
Files?
-
Re: INI Files
I think there are examples of how to do this at
www.planetsourcecode.com, but the way you (I think) anyway
should be doing this, is using the SaveSetting, GetSetting methods
to store this in the registry, you get sooooo much here for
free that unless you have a reason not to, use it...it is just
too easy to use to ignore...
Things like ini files are (unless you write extra code) going to save
the same preferences for anyone who uses the program on a computer,
but using the SaveSetting, GetSetting, it is stored in the windows registry
for the current user and the OS handles it all for you....and every
user gets their own preferences and you didn't have to write one
extra line of code....all the heavy lifting is already done...cool eh.
Steve
"Bert LaChance" <bert334@yahoo.com> wrote in message
news:3ae24a45$1@news.devx.com...
>
> How do you create INI Files to store and read initialization information
in
> VB? I would like to create an option where users of an application can
save
> preferences, and have those saved preferences come up when they load the
> application. Are there any web sites that provide more insight into INI
> Files?
-
Re: INI Files
> Are there any Web sites that provide more insight
> into INI files?
Bert: Try this: http://www.mvps.org/vbnet/code/filea...ofilebasic.htm
---
Phil Weber
-
Re: INI Files
Bert:
My two cents worth - I prefer using the registry rather than an Ini file.
The main reason is that each user of the computer has their own registry
settings. If the machine is shared then each user can set their own
preferences. The second reason is that it takes a bit more computer
knowledge to modify the registry than to modify an Ini file. I usually don't
want the user to change the registry entries.
Some months ago I wrote a tip of the month that I call 'RegRead/RegWrite'.
Link to http://www.buygold.net/tips.html then look for the December 1997 tip
of the month. A sample program is provided that shows how to read and write
strings to the registry. This have proven to be a very popular download.
Cheers,
Larry Rebich
More tips link to:
http://www.buygold.net/tips.html
Please:
No personal e-mail questions :-)
"Bert LaChance" <bert334@yahoo.com> wrote in message
news:3ae24a45$1@news.devx.com...
>
> How do you create INI Files to store and read initialization information
in
> VB? I would like to create an option where users of an application can
save
> preferences, and have those saved preferences come up when they load the
> application. Are there any web sites that provide more insight into INI
> Files?
-
Re: INI Files
Bert --
Just my two cents. Use the link that Phil has provided and learn to use
Ini files. My place of employment 'locks' user profiles so you can't use
the
Current_User hive to store persistent information. I use a combination of
server side database tables and ini files to keep user information current.
FWIW,
Jim Edgar
"Bert LaChance" <bert334@yahoo.com> wrote in message
news:3ae24a45$1@news.devx.com...
>
> How do you create INI Files to store and read initialization information
in
> VB? I would like to create an option where users of an application can
save
> preferences, and have those saved preferences come up when they load the
> application. Are there any web sites that provide more insight into INI
> Files?
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks