Table of Contents

TransferFieldsRecRef Procedure

Codeunit RecRef Functions

Copies all fields from one RecordRef to another RecordRef, similar to the Record.TransferFields() method.

Signature

TransferFieldsRecRef(var SourceRecRef: RecordRef; var TargetRecRef: RecordRef; InitPrimaryKeyFields: Boolean)

Parameters

var SourceRecRef RecordRef

The source record, where the values will be copied from.

var TargetRecRef RecordRef

The target record, where the values will be copied to.

InitPrimaryKeyFields Boolean

true if values in the primary key should be copied.

Remarks

The source table does not have to contain all fields in the target table. The fields that have the same field number must have a matching datatype.

This documentation is generated from Smart Toolbox v27.1