| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > DbAuditManager > DbAuditManager Methods >====== OnFieldChange (virtual method for each field change) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[ondelete update audit log file when a record is deleted .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[oninsert update audit log file when a record is added .htm|{{btn_next_n.gif|Next page}}]] | | || **OnFieldChange(**l//eft//**,** //right//**,** //fieldname//**,** //filename//**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **OnFieldChange** | 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 **OnFieldChange **method is called for each field in the record that has changed. The before and after values are passed to this method. **Implementation:** **OnFieldChange** 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:**     [[checkpair check field pairs for changes .htm|DbChangeManager.CheckPair]]