Ini_GetAllSectionVariables
Description
Reads all entries in section
Syntax
Ini_GetAllSectionVariables(sFile,sSection, sSeperateChar, bReturnAsArray, bMustExist) As Boolean
Parameters
sFile (String)
Filename
sSection (String)
Section name
sSeperateChar (String)
Char between each section-header
bReturnAsArray (Boolean)
Section-list must be returned in array
bMustExist (Boolean)
File must exist
Return value
If bReturnAsArray is true the list of entries will be returned in gaValue otherwise the list will be returned in gsValue separated by sSeperateChar
Example
VBScript
If bStatus Then bStatus = Ini_GetAllSectionVariables("C:\CapaInstaller.ini", "SectionName", "|", True, True) If bStatus Then For index = LBound(gaValue) To UBound(gaValue) bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & gaValue(index), bStatus, False) Next End If