CompareFields method: Record class
Syntax
CompareFields(recordobject)
Description
The CompareFields method compares all like-named fields of the record object executing the method with the specified record object recordobject.
Parameters
| Parameter | Description |
|---|---|
|
recordobject |
Specify a record object for use in the comparison. The specified record object does not have to refer to the same record as the record object executing the method. |
Returns
A Boolean value; True if all like-named fields have the same value.
Example
&REC = GetRecord(RECORD.OP_METH_VW);
&REC2 = GetRecord(RECORD.OPC_METH);
If &REC2.CompareFields(&REC) Then
WinMessage("All liked named fields have the same value");
End-If;