Ini_ReadEntry
Description
Section titled “Description”Reads value of entry
Syntax
Section titled “Syntax”Ini_ReadEntry(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 entry doesn’t exist.
Return value
Section titled “Return value”Result will be stored in gsValue. If the entry doesn’t exist and bMustExist is False, gsValue is empty.
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_ReadEntry("C:\CapaInstaller.ini", "SectionName", "EntryName", True)If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”Ini_DeleteEntry Ini_ExistEntry Ini_WriteEntry Constants Package Property Variables