#

# LogiView

## Function 'field_ret_qry'

| Use this command to read the contents of the query buffer for a mask field. An empty string is inserted if no entry could be found in the query buffer of the specified field. 'Field_ret_qry' works similar to the DataView programming interface function 'mas_rea_sel'.
| ### Syntax:
| {STR_VAR}= field_ret_qry({WDG_ID},{FLD})
| ### I/O parameters:
| {WDG_ID} | ID of mask widget
| {FLD} | Name of field whose query buffer is to be read
| - |
| ### Return value:
| {STR_VAR} | Contents of query buffer
| ### Example:
| Declaration of Variables
    10 DOCU_INT_1 = widget_id()
    20 DOCU_STRING_1 = field_ret_qry(DOCU_INT_1,
       "T_MASTER_DAT.BOM_FLAG")
    30 if (DOCU_STRING_1 != "")
    40   put ("Search entry in field T_MASTER_DAT.BOM_FLAG is
         %s", QRY_STR)
    50 endif
| Functions and commands: Modification of Fields