CopyChangedFieldsTo method: Record class

Syntax

CopyChangedFieldsTo(recordobject) 

Description

The CopyChangedFieldsTo method copies all like-named field values that have changed from the record object executing the method to the specified record object recordobject. This copies only changed field values. To copy all field values, use the CopyFieldsTo method.

Note:

This method works only with database records. The Component Processor doesn't track the contents of work records, so there is no changed value to use for copying changed fields.

Parameters

Parameter Description

recordobject

Specify a record object to be copied to. The specified record object does not have to refer to the same record as the record object executing the method.

Returns

None.

Example

Local Record &REC, &REC2;

&REC = GetRecord(RECORD.OPC_METH);

/* make changes to the values of fields in the record */

&REC2 = CreateRecord(RECORD.OPC_METH_WORK);

&REC.CopyChangedFieldsTo(&REC2);