#

# LogiView

## Command 'widget_get_buf'

| This command is used to read the value stored for the specified key for the specified widget from the buffer. There is no output if no value is found. The found value is assigned to the specified variable. If the value cannot be converted to the variable type, LogiView aborts the execution and displays a corresponding error message.
| ### Syntax:
| widget_get_buf ({WDG_ID}, {STR_EXPR}, {VAR})
| ### I/O parameters:
| {WDG_ID} | ID of the widget.
| {STR_EXPR} | Key of the entry in the widget buffer.
| {VAR} | Variable to be assigned with the value in the widget buffer.
| ### Return value:
| - |
| ### Example:
| Declaration of Variables
    10 widget_get_buf (widget_id(),"CUSTO_DEL",OPTION)
    20 if (OPTION != "")
    30   put (strprint("Widget-Buffer CUSTO_DEL ist %s",OPTION))
    40 else
    50   put ("Widget buffer CUSTO_DEL not set!")
    60 endif
| Functions and commands: Editing Masks