ClosePreferences()
Syntax
ClosePreferences()Description
Closes a preference file previously opened with OpenPreferences() or created with CreatePreferences().
Parameters
None.
Return value
None.
Example
; Open a preference file
OpenPreferences(#PB_Compiler_Home +"Examples\Sources\Data\test.pref")
; Choose the group "window"
PreferenceGroup("window")
; Display the "w" key of this group
MessageRequester("Info", "w = " + ReadPreferenceLong ("w", 0))
; Close the preference file
ClosePreferences()
See Also
CreatePreferences(), OpenPreferences()
Supported OS
All