Forum Discussion
jeremy_bertrand
12 years agoContributor
Ok. I've cleaned up the code a little bit. I had a lot of log message statements in so I could see where things were happening and where stuff would break.
This is what is in the INI file.
; IMPORTANT: The Root section is mandatory
[Root]
[paths]
version=102
progpath=j:\ezwin\joel\102j\
netpath=k:\ezwin\102j\
clinicpath=j:\ezwin\joel\102j\clinic1\
This is the script that I try to get the values stored in the INI file.
Sub Test4
Dim ini, tempini
set ini = Storages.INI("this is the full path\Files\tc.ini")
Set tempini = ini.GetSubSection("paths")
ProjectSuite.Variables.version = tempini.GetOption("version", "something")
ProjectSuite.Variables.progpath = tempini.GetOption("progpath", "something")
ProjectSuite.Variables.netpath = tempini.GetOption("netpath", "something")
ProjectSuite.Variables.clinicpath = tempini.GetOption("clinicpath", "something")
End Sub
This is what is in the INI file.
; IMPORTANT: The Root section is mandatory
[Root]
[paths]
version=102
progpath=j:\ezwin\joel\102j\
netpath=k:\ezwin\102j\
clinicpath=j:\ezwin\joel\102j\clinic1\
This is the script that I try to get the values stored in the INI file.
Sub Test4
Dim ini, tempini
set ini = Storages.INI("this is the full path\Files\tc.ini")
Set tempini = ini.GetSubSection("paths")
ProjectSuite.Variables.version = tempini.GetOption("version", "something")
ProjectSuite.Variables.progpath = tempini.GetOption("progpath", "something")
ProjectSuite.Variables.netpath = tempini.GetOption("netpath", "something")
ProjectSuite.Variables.clinicpath = tempini.GetOption("clinicpath", "something")
End Sub