I'm having a bit of a nightmare with this one and was wondering if anyone could help.
I'm making a Structure, within that Structure is a Array:
Code: Select all
Structure Systems
SystemName.s
DefaultPath.s
FileList.s[50]
EndStructure
Code: Select all
Dim SystemsList.Systems(20)
Code: Select all
If ExaminePreferenceKeys()
While NextPreferenceKey()
If UCase(PreferenceKeyName()) = "DEFAULTPATH"
SystemsList(GroupNum)\DefaultPath = PreferenceKeyValue()
EndIf
If UCase(Left(PreferenceKeyName(),4)) = "FILE"
FilesInINI = FilesInINI + 1
SystemsList(GroupNum)\FileList(FilesInINI) = PreferenceKeyValue()
EndIf
Wend
EndIf
Any help appreciated!
Mark
EDIT:
FYI the INI file looks like this:
Code: Select all
[Type 1 System]
SystemName = Joe Bloggs System
DefaultPath = C:\Program Files\JBloggs\Database\System\
File1 = Names.DAT
File2 = Supply.DBD
File3 = Institution.DAT
[Type 2 System]
SystemName = Jimmy System
DefaultPath = C:\
File1 = Names.MDB
File2 = Address.DAT
File3 = TBL.DAT

