MakeMergedRecord (open)

Combines the cells of two records into one record

Syntax

// Core function, no LOADLIB necessary

RECORD FUNCTION MakeMergedRecord(RECORD rec1, RECORD rec2)

Parameters

RECORD rec1

First record

RECORD rec2

Second record

Return value

RECORD

The combined record

Description

MakeMergedRecord merges two records together. The resulting record contains all the cells that are present in the two records given as parameters. If both records contain a cell with the same name, an error is generated

Examples

// Combine two records
RECORD rec := MakeMergedRecord([ a := 1 ], [ b := 1 ]);

// Rec now contains [ a := 1, b := 1 ]