IniFileGetValue Function

Action

Retrieves a value from an open initialization (.ini) file on the host system.

Syntax

sValue = IniFileGetValue(hIniFile, sSection, sName)
Variable Description
sValue The returned value. Limited to 255 characters. STRING.
hIniFile A handle to the file containing the value. HINIFILE.
sSection The section of the file containing the value to retrieve. STRING.
sName The name of the value to retrieve. STRING.

Notes

If the value or the section is not found, IniFileGetValue returns an empty string ("").

Return values for INI file strings are limited to 255 characters (sValue).

This function is not designed for remote access.

Example

HINIFILE hIni
STRING sValue
hIni = IniFileOpen("myapp.ini")
sValue = IniFileGetValue(hIni, "Paintbrush", "width")