ChangeField (virtual method for managing field changes)

Top  Previous  Next

 

ChangeField(left, right, fieldname, filename), VIRTUAL

ChangeField

Manage field changes.

left

The label of the "left" field of the pair that contains the original value of the field being updated. The field may be any data type, but may not be an array.

right

The label of the "right" field of the pair that contains the new value of the field being updated. The field may be any data type, but may not be an array.

Fieldname

A string constant, variable, EQUATE, or expression containing the label of the field that is to be audited.

Filename

A string constant, variable, EQUATE, or expression containing the label of the file that is audited.

The ChangeField method is called for each field in the record that has changed. The before and after values are passed to this method. This method calls DbAuditManager.OnFieldChange.

Implementation:

ChangeField is a VIRTUAL method so that other base class methods can directly call the OnFieldChange virtual method in a derived class. This lets you easily implement your own custom version of this method.

See Also:     DbAuditManager.OnFieldChange