|
This function is used to read a database value. The corresponding database field must be the type "Logic". |
|||
![]() |
If the function is called using the Where clause "actual', LogiView tries to read the table field value from the current mask. |
|||
![]() |
If the number of values which are returned by the where clause is unknown, it is absolutely necessary to call sel_value(count) and proceed with the programming depending on the result. If the result > 1 , an array must be read-in. Example: |
|||
Syntax: |
||||
{LOG_VAR}= sel_logic({FLD},{WHERE|actual}) or |
||||
I/O parameters: |
||||
Return value: |
||||
|
||||
Example: |
||||
Declaration of Variables | ||||
10 if (sel_logic("T_USER.C_MNG_FLG","C_NAME"=user()) !=TRUE) 30 put_mes("EDB-BAS-NEED-MNG-PRV") 40 exit() 50 endif |
||||
Result: | ||||
![]() |
||||
![]() |
Functions and commands: DB/Mask Interface |