Page tree
Skip to end of metadata
Go to start of metadata

Description

Reads all section-headers


Syntax

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


Parameters

sFile (String)

Filename

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 section headers will be returned in gaValue otherwise the list will be returned in gsValue separated by sSeperateChar


Example

VBScript
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


Related functions

Ini_DeleteSection Ini_GetAllSectionVariables

  • No labels