Ini_ExistEntry
Description
Section titled “Description”Checks if specified entry exists in specified section in specified file
Syntax
Section titled “Syntax”Ini_ExistEntry(sFile, sSection, sEntry, bMustExist) as Boolean
Parameters
Section titled “Parameters”sFile (String)
Section titled “sFile (String)”Filename
sSection (String)
Section titled “sSection (String)”Section name
sEntry (String)
Section titled “sEntry (String)”Entry name
bMustExist (Boolean)
Section titled “bMustExist (Boolean)”Entry must exist. If True, the function returns False when the section or the entry doesn’t exist.
Return value
Section titled “Return value”Result will be stored in gbValue
Remarks
Section titled “Remarks”The INI file must exist. If it doesn’t, the function returns False, whatever the value of bMustExist.
Example
Section titled “Example”If bStatus Then bStatus = Ini_ExistEntry("C:\CapaInstaller.ini", "SectionName", "EntryName", False)If bStatus And gbValue Then bStatus = Job_WriteLog("Custom", "EntryName exists", bStatus, True)