#

# LogiView

## Command 'field_get_buf'

| Use this command to read a value from the corresponding field for the specified key. If no value is found no value is returned.
| ### Syntax:
| field_get_buf ({WDG_ID}, {FLD}, {STR_EXPR}, {VAR})
| ### I/O parameters:
| {WDG_ID} | Widget ID
| {FLD} | Name of field
| {STR_EXPR} | Key of field buffer entry
| {VAR} | Variable to be initialized with the field buffer value
| ### Return value:
| - |
| ### Example:
| Declaration of Variables
    10 field_get_buf (widget_id(), "T_MASTER_DAT.PART_ID",
       "OLD_VALUE", CONTENTS)
    20 if (CONTENTS != "")
    30   put (strprint("Old field contents is "\%s\"", CONTENTS))
    40 endif
| Functions and commands: Modification of Fields