# IupConfigSetVariableStr

Definition: | include pGUI.e IupConfigSetVariableStr(Ihandle config, string group, string key, nullable_string v) -- or -- IupConfigSetVariableStrId(Ihandle config, string group, string key, integer id, nullable_string v)
Description: | This function is similar to the IupSetAttribute 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 (NULL to delete) 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", "Font", "Arial" should result in a config file that contains, amongst other things, "[MainWindow]\nFont=Arial\n". Internally variables are stored as attributes using a "<GROUP>.<KEY>" combination, which is why group and key names cannot have periods ".".
pwa/p2js: | Not supported.
Example: |
    IupConfigSetVariableStr(config, "MainWindow", "LastDirectory", d);
See Also: | IupConfig, IupConfigLoad, IupSetAttribute