MakeReplacedRecord (open)
Replaces the cells in a record
Syntax
// Core function, no LOADLIB necessary
RECORD FUNCTION MakeReplacedRecord(RECORD original, RECORD updatedata)Parameters
RECORD originalOriginal record
RECORD updatedataRecord to update data in the original record with
Return value
RECORDThe updated record
Description
MakeReplacedRecord replaces cells in an existing record.. The resulting record contains all the cells in the original record, but any values found in the new record will be replaced with the original record. If the type of two cells differ, they will not be updated. The function will not recurse, but simply replace any cells of type record completely
Examples
MakeReplacedRecord( [ a := 1, subrec := [ b := 1, c := 1] ]
, [ b := 2, subrec := [ c := 2 ] ] );
// Will return [ a := 1, subrec := [ c := 2 ] ];