IniFileSetValue function

Action

Changes a value in an open initialization (.ini) file on the host system.

Syntax

IniFileSetValue(hIniFile, sSection, sName, sValue)
Variable Description
hIniFile A handle to the file containing the value. HINIFILE.
sSection The section of the file containing the value to change. STRING.
sName The name of the value to change. STRING.
sValue The new value. STRING.

Notes

If the specified section or value doesn’t exist, IniFileSetValue adds it. IniFileSetValue does not write the initialization file to disk; it only changes or adds a value in the open file.

This function is not designed for remote access.

Example

HINIFILE hIni
hIni = IniFileOpen("myapp.ini")
IniFileSetValue(hIni, "Paintbrush", "width", "640")