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
hs.SaveINISetting("My Settings", "Zip Code", "49601", "My_App_Settings.ini")