Skip to content

Ini_GetAllSections

Reads all section-headers

Ini_GetAllSections(sFile, sSeperateChar, bReturnAsArray, bMustExist) As Boolean

Filename

Char between each section-header

Section-list must be returned in array

File must exist

If bReturnAsArray is true the list of section headers will be returned in gaValue otherwise the list will be returned in gsValue separated by sSeperateChar

If bStatus Then bStatus = Ini_GetAllSections("C:\CapaInstaller.ini", "|", True, True)
If bStatus Then
For index = LBound(gaValue) To UBound(gaValue)
bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & gaValue(index), bStatus, True)
Next
End If

Scripting Guidelines

Ini_DeleteSection Ini_GetAllSectionVariables Constants Package Property Variables