I have a problem reading multiple data from an INI file. I can read one no problem but I keep getting an Error13 if I try to read more than one. Any Help would be appreciated. The code I use in the form to read the single ini data is as follows:
[code]Dim m_oReadINI As CReadINI
Dim sLocation As String
Set m_oReadINI = New CReadINI
'set location of the INI file
sLocation = "C:HomeSettings.ini"
'pass info from CReadINI
.ININame = "C:HomeSettings.ini"
.Section = "Settings"
.Key = "RobotID"
txtRobotID.Text = .ReadINISettings
Set m_oReadINI = Nothing
The ini file looks like this and I want to be able to read other values from it.
I want to be able to read multiple data from different keys etc from this code. How do I do this?? Any help would be appreciated. Thanks.