.ini File

T

thomasp

I have about 10 values that I would like to store, that can be read by my
program when it starts. I am using an .ini file to do this. Everything I
read says .ini files or a thing of the past and should not be used. There
supposedly are better ways to accomplish this task. Could someone point me
to a better way. I am using VB2005.

Thanks

Thomas
 
H

Herfried K. Wagner [MVP]

I have about 10 values that I would like to store, that can be read by my
program when it starts. I am using an .ini file to do this. Everything I
read says .ini files or a thing of the past and should not be used. There
supposedly are better ways to accomplish this task. Could someone point
me
to a better way. I am using VB2005.

Select "My Project" in the solution explorer, choose "Settings" and add the
settings. 'My.Settings.<setting name>' provides access to the settings.
Call 'My.Settings.Save' to save the current settings.
 
T

thomasp

Ok, setting and reading these variables seems easy enough. I don't
understand why with all my internet searching I did not find this. Anyway,
how do you programically change these setting?

My.Settings.LCMROffset = strLCMROffset

does not work. Error states this is a read only setting.

Thanks,

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top