PureBasic - Preference

Overview

Preference file contains user defined program parameters stored on the disk and read back when the program start again (like '.INI' files under Windows for example). PureBasic offers the possibility to create hierarchical preference file easily useable on any computer platform. The file format is in ascii (standard) with one preference per line, using the 'Keyword = Value' syntax. Groups can be created for better reading.

Compiling in unicode modus forces PureBasic to save the strings in the preference file in UTF-8 format.

Command Index

ClosePreferences
CreatePreferences
ExaminePreferenceGroups
ExaminePreferenceKeys
FlushPreferenceBuffer
NextPreferenceGroup
NextPreferenceKey
OpenPreferences
PreferenceComment
PreferenceGroup
PreferenceGroupName
PreferenceKeyName
PreferenceKeyValue
ReadPreferenceDouble
ReadPreferenceFloat
ReadPreferenceInteger
ReadPreferenceLong
ReadPreferenceQuad
ReadPreferenceString
RemovePreferenceGroup
RemovePreferenceKey
WritePreferenceDouble
WritePreferenceFloat
WritePreferenceInteger
WritePreferenceLong
WritePreferenceQuad
WritePreferenceString

Example

Preference.pb

Supported OS

All

Reference Manual - Index