|
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:
|
||||||||
Return value: |
||||||||
|
||||||||
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 |