CreatePreferences()

Syntax

Result = CreatePreferences(Filename$)
Description
Creates a new empty preference file. If the file already exists, the file is erased. If 'Result' is 0 then the file can't be created. Once the file has been created successfully, the functions like WritePreferenceString() can be used to write data. Once some values are written in preferences, it's possible to read them back with the functions like ReadPreferenceString(). To remove a key or a group, the functions RemovePreferenceKey() and RemovePreferenceGroup() are available. To create or change the current group, use PreferenceGroup().

Once all write operations have been done, ClosePreferences() is used to write effectively the preference file back to disk.

Supported OS

All

<- ClosePreferences() - Preference Index - ExaminePreferenceGroups() ->