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