IsChanged property: Record class

Description

This property returns True if any field value on the primary database record of the row has been changed.

Note:

This property is for use only with the primary database record. It does not return valid results if used with a work record.

This property is read-only.

Example

If &REC.IsChanged Then
    Warning("This Record has been changed");
End-if;

Considerations Using IsChanged

This property and the IsChanged row property do not always return identical values.

If a row in a scroll contains multiple records (such as a primary database record and one or more work records), the IsChanged row property returns True if any of the records in the row are changed. The IsChanged record property returns True only if a specific record, namely, the primary database record, is changed.

If a row is deleted from a scroll, only the primary database record has its IsChanged property marked to False (since the row has been deleted.) Any work records in the row still have their IsChanged properties set to True.