
Accessing info from INI file
Hi Steven,
To extend to Dave's answer:
if you're not familiar with accessing INI files,
the System.PrivateProfileString will also generate INI files
on the fly.
Run this piece of code (assuming c:\temp is available on your system):
Sub MakeIni()
With System
.PrivateProfileString("c:\temp\Test.INI", "NewSection", "Key1") = "Value
Key1"
.PrivateProfileString("c:\temp\Test.INI", "NewSection", "Key2") = "Value
Key2"
End With
End Sub
Kind regards,
Perry
Quote:
> Hi Steven,
> You can use the PrivateProfileString
> MsgBox System.PrivateProfileString( _
> FileName:="C:\Test.ini", _
> Section:=SectionName, _
> Key:=KeyName)
> HTH
> > How can I read variable information from an INI file where
> > I want users to store variable information?
> > Thanks,
> > Steven Pearl