The SetINIValue method stores a value into an INI file. This method, along with GetINIValue, is useful if you need to store a custom value in an INI file and retrieve it for any purpose.

Syntax

SetINIValue(INIFile as String, Section as String, 
    Entry as String, Value as String) as Boolean

Parameters
INIFile
The fully-qualified path to the INI file.

Section
The section in the INI file where the value is stored (if the section doesn't exist, it's added).

Entry
The name of the entry for the value (if the entry doesn't exist, it's added).

Value
The value to store.

Return Value
True if the value was stored or False if not.

Example
See GetINIValue for example code.

See also

Application Object | GetINIValue | SetRegistryValue