Skip to main content
Skip table of contents

SaveINISetting

Purpose

Saves a key/value pair in an INI file.


Parameters

Parameter: section
Type: string
Description: Name of the section in the INI file to save to, like "Settings" for the HomeSeer settings section.

Parameter: key
Type: string
Description: Name of the key in the INI file to access.

Parameter: value
Type: variant
Description: The value to save in the given key.

Parameter: filename
Type: string (optional)
Description: This is the file name of the INI file to access.  The file name is relative to the "config" folder in the HomeSeer program directory (C:\Program Files\HomeSeer 2\Config by default).  If this parameter is omitted, the HomeSeer settings.ini file is used.


Returns

None


Example

Sample Code

VB
hs.SaveINISetting("My Settings", "Zip Code", "49601", "My_App_Settings.ini")


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.