Skip to content

Put Command

Obsolete

The Put command is obsolete. See the Struct command for creating and using structured types in DataFlex. Put is not needed when using structs instead of Types.

Purpose

To store data into a field in a complex data structure (which is declared within a Type...End_Type block).

Syntax

Put {value} To {buffer} at {field}

Argument Explanation

  • value: Any valid data or variable, which matches the size (in bytes) of the field.
  • buffer: The name of the complex data structure.
  • field: The field within buffer into which value is stored.

What It Does

Put sets the part of the complex data structure buffer named field to value.