Record.Copy(Record [, Boolean]) Method

Version: Available or changed with runtime version 1.0.

Copies a specified record's filters, views, automatically calculated FlowFields, marks, fields, and keys that are associated with the record from a table or creates a reference to a record.

Syntax

 Record.Copy(FromRecord: Record [, ShareTable: Boolean])

Parameters

Record
 Type: Record
An instance of the Record data type.

FromRecord
 Type: Record
The record to copy.

[Optional] ShareTable
 Type: Boolean
Specifies whether the method copies filters, views, automatically calculated FlowFields, marks, fields, and keys of the record or creates a reference to a temporary record. If FromRecord and Record are both temporary and ShareTable is true, then the COPY method causes Record to reference the same table as FromRecord. If ShareTable is true, then both Record and FromRecord must be temporary; otherwise an error will occur. The default value is false. If you specify false, only filters, marks, and keys are copied.

Record Data Type
Get Started with AL
Developing Extensions