| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > FileManager > FileManager Methods >====== EqualBuffer (detect record buffer changes) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[destruct automatic destructor .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[fetch get a specific record by key value .htm|{{btn_next_n.gif|Next page}}]] | | || **EqualBuffer( **//buffer id //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **EqualBuffer** | Compares the managed file's record buffer with the specified buffer and returns a value indicating whether the buffers are equal. | | //buffer id// | An integer constant, variable, EQUATE, or expression that identifies the buffer contents to compare--typically a value returned by the SaveBuffer method. | The **EqualBuffer **method compares the managed file's record buffer, including any MEMOs or BLOBs, with the specified buffer and returns a value indicating whether the buffers are equal. A return value of one (1 or True) indicates the buffers are equal; a return value of zero (0 or False) indicates the buffers are not equal. Assigning PROP:Handle on a BLOB field constitutes a change to the BLOB and will cause EqualBuffer() to return False. **Return Data Type:**     BYTE **Example:** **MyWindowManager.TakeCloseEvent PROCEDURE** ** CODE** ** IF SELF.Response = RequestCancelled            !if end user cancelled the form** **  IF ~SELF.Primary.Me.EqualBuffer(SELF.Saved)   !check for any pending changes** **   !handle cancel of pending changes** **  END** ** END** **See Also:**     [[savebuffer save a copy of the record buffer .htm|SaveBuffer]]