Preferences Component

Fnd_Pref_GetReal

Fnd_Pref_GetReal (name{; default {; scope}}) -> Longint

Legacy manual page 176

Parameters

ParameterTypeDescription
nameTextName of the preference item
defaultRealDefault value (optional)
scopeLongintThe scope if the default is used (optional)
Function resultRealThe saved value

Description

Returns the real number value of the preference with the specified name:

$rate_r:=Fnd_Pref_GetReal ("ExchangeRate")

If an item with the specified name is not found, 0 is returned. To specify a different default value, pass it as the second parameter:

$rate_r:=Fnd_Pref_GetReal ("ExchangeRate";1.35)

If the preference value already exists, the second parameter will be ignored. If it does not exist, it will be created and set to the value of the second parameter. If no scope parameter is specified, the value will be saved as a local preference. A third parameter can be used to specify the preference’s scope:

$rate_r:=Fnd_Pref_GetReal ("ExchangeRate";1.35;Fnd_Pref_Shared )

The scope value will be used only if the parameter does not already exist.

Extracted source text
            Fnd_Pref_GetReal (name{; default {; scope}}) ➔ Longint

              Parameter                 Type               Description
              name                      Text               Name of the preference item
              default                   Real               Default value (optional)
              scope                     Longint            The scope if the default is used (optional)
              Function result           Real               The saved value

            Returns the real number value of the preference with the specified name:
              $rate_r:=Fnd_Pref_GetReal ("ExchangeRate")

            If an item with the specified name is not found, 0 is returned. To specify a different default value, pass it as
            the second parameter:
              $rate_r:=Fnd_Pref_GetReal ("ExchangeRate";1.35)

             If the preference value already exists, the second parameter will be ignored. If it does not exist, it will be
            created and set to the value of the second parameter.
            If no scope parameter is specified, the value will be saved as a local preference. A third parameter can be
            used to specify the preference’s scope:
              $rate_r:=Fnd_Pref_GetReal ("ExchangeRate";1.35;Fnd_Pref_Shared )

            The scope value will be used only if the parameter does not already exist.