#

# LogiView

## Function 'default_get'

| This function checks if a DataView default with the specified name (for the user) is set. If so, the function returns a "TRUE" result and assigns the default value to the corresponding variable. If the value cannot be converted to the variable type, LogiView aborts the execution and displays a corresponding error message. If no default is set for the specified variable, the function returns "FALSE". In this case the variable is not changed.
| ### Syntax:
| {LOG_VAR}= default_get ({STR_EXPR}, {VAR})
| ### I/O parameters:
| {STR_EXPR} | Name of default setting (in capital letters).
| {VAR} | Variable to be defined with the default value
| ### Return value:
| {LOG_VAR} |
TRUE | Default is set
False | Default could not be set
| ### Example:
| Declaration of Variables
    10 if (default_get("DATEFORMAT_ENG",DOCU_STRING_1) == TRUE)
    20  put ("English date format:", DOCU_STRING_1)
    30 endif
| Result:
| Functions and commands: Miscellaneous