|
This function is used to read a database value. The corresponding database field must be the type "String". |
||||||||||||||||||
![]() |
This command allows
long-text fields. 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 possible 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: OR: If the number of values which are returned is >1, the returned number of found records is stored in REC_NR. Example: ART_S=sel_string ("T_MASTER_DAT.PART_ID", "T_MASTER_DAT.PART_ID"="screw%",REC_NR) |
||||||||||||||||||
Syntax: |
|||||||||||||||||||
{STR_VAR}= sel_string({STR_EXPR},{WHERE|actual}) or |
|||||||||||||||||||
I/O parameters:
|
|||||||||||||||||||
Return value: |
|||||||||||||||||||
|
|||||||||||||||||||
Example: |
|||||||||||||||||||
Declaration of Variables | |||||||||||||||||||
10 if (sel_string(act_fld)== "")) 20 put_mes("EDB-BAS-USR-UIC-ERR","200-999") 30 exit() 40 else 50 .. 90 endif |
|||||||||||||||||||
![]() |
Functions and commands: DB/Mask Interface |