struct

Uniface data type containing an ordered collection of references to one or more Structs.

{byRef} | {byVal}  struct  ParameterName : Direction

struct  VariableName | NonDatabase_FieldName

Qualifiers

  • byRef—the Struct is passed by reference, so only a memory pointer is passed, not the actual data, which is already available in memory.

  • byVal—the data is passed by Value, so a copy of the Struct is created and then passed.

Use

Allowed for non-database fields, local variables, component variables, global variables, and general variables, and for parameters in ProcScript entries and partner operations.

The byRef and byVal qualifiers are only applicable for parameters. They specify how Structs are passed back and forth. They are not allowed for fields or variables of any kind.

Description

The struct data type is used for complex data that is typically represented as a tree-like structure consisting of nodes (sub-trees or branches) and leaves (data values). It is intended for data manipulation rather than storing data, so it is available for variables (local, component, global and general), parameters, and non-database fields.

For more information, see Struct Variables and Passing Struct Parameters.

Related Topics