PreferenceKeyValue()
Syntax
Value$ = PreferenceKeyValue()Description
Returns the value, in string form, of the current key being enumerated with ExaminePreferenceKeys(). To get the name of the key, use PreferenceKeyName().
Parameters
None.
Return value
The value, in string form, of the current key being enumerated with ExaminePreferenceKeys().
Example
; Open a preference file
OpenPreferences(#PB_Compiler_Home +"Examples\Sources\Data\test.pref")
; Select a group
PreferenceGroup("window")
; Examine keys in the group 'window'
ExaminePreferenceKeys()
While NextPreferenceKey() ; While a key exists
MessageRequester("Key group 'window'", PreferenceKeyName() + " = " + PreferenceKeyValue()) ; Display the key with its data
Wend
; Close the preference file
ClosePreferences()
See Also
ExaminePreferenceKeys(), PreferenceKeyName()
Supported OS
All