ReadPreferenceString()

Syntax

Result$ = ReadPreferenceString(Key$, DefaultValue$)
Description
Try to read the specified associated 'Key$' value.

Parameters

Key$ The key to read the value from. If PreferenceGroup() has been used, then the search is restricted to the current group.
DefaultValue The default value to return if the key isn't found or the preference file haven't been opened correctly (file missing for example).

Return value

The value associated to the specified key, as a string. if the key isn't found the default value is returned.

Example

See the example at ReadPreferenceDouble()

See Also

ReadPreferenceDouble(), ReadPreferenceFloat(), ReadPreferenceInteger(), ReadPreferenceLong(), ReadPreferenceQuad()

Supported OS

All

<- ReadPreferenceQuad() - Preference Index - RemovePreferenceGroup() ->