Skip to content

Ini_GetAllSectionVariables

Reads all entries in section. Only the entry names are returned, not their values. Use Ini_ReadEntry to read a value.

Ini_GetAllSectionVariables(sFile,sSection, sSeperateChar, bReturnAsArray, bMustExist) As Boolean

Filename

Section name

Character between each entry name in gsValue. Not used when bReturnAsArray is True.

Entry list must be returned in array

Section must exist. If True, the function returns False when the section doesn’t exist or contains no entries.

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

The INI file must exist. If it doesn’t, the function returns False, whatever the value of bMustExist.

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

Scripting Guidelines

Ini_DeleteSection Ini_GetAllSections Constants Package Property Variables