RecordRef.Copy(var Record [, Boolean]) Method

Version: Available or changed with runtime version 5.3.

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

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

Parameters

RecordRef
 Type: RecordRef
An instance of the RecordRef 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.

See Also

RecordRef Data Type
Get Started with AL
Developing Extensions