IupConfigSetVariableInt

Definition: include pGUI.e

IupConfigSetVariableInt(Ihandle config, string group, string key, integer v)
-- or --
IupConfigSetVariableIntId(Ihandle config, string group, string key, integer id, integer v)
-- or --
IupConfigSetVariableDouble(Ihandle config, string group, string key, atom v)
-- or --
IupConfigSetVariableDoubleId(Ihandle config, string group, string key, integer id, atom v)
Description: This function is similar to the IupSetInt function, but persistent.

config: Identifier of the configuration database (see IupConfig)
group: group name of the variable
key: key name of the variable id: used when the variable has a sequential number
v: value of the variable

The group and key names should be arbitrarily selected by the programmer to be meaningful and unique across the application, just as you would if you were writing out a .ini file by hand. For example "MainWindow", "FontSize", 12 should result in a config file that contains, amongst other things, "[MainWindow]\nFontSize=12\n".

Internally variables are stored as attributes using a "." combination, which is why group and key names cannot have periods ".".
Example:
IupConfigSetVariableInt(config, "MainWindow", "FontSize", 12)
See Also: IupConfig, IupSetAttribute, IupConfigLoad, IupGetAttribute