| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > BufferedPairsClass > BufferedPairsClass Methods >====== EqualLeftBuffer (compare "left" fields to "buffer" fields) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[assignrighttobuffer copy from right fields to buffer fields .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[equalrightbuffer compare right fields to buffer fields .htm|{{btn_next_n.gif|Next page}}]] | | || **EqualLeftBuffer( <;**//caseflag>//** )** {{blk2blue.jpg|blk2blue.jpg}} | **EqualLeftBuffer** | Compares left buffer value to corresponding "buffer" field | | //caseflag// | A BYTE value that designates that the matching value is case sensitive. A value of 1 (TRUE) makes the comparison result case sensitive. | The **EqualLeftBuffer **method returns one (1) if each "left" field equals its corresponding "buffer" field; otherwise it returns zero (0). **Implementation:** The "left" field is the //first //(left) parameter of the AddPair method. The "right" field is the //second //(right) parameter of the AddPair method. The BufferedPairsClass automatically supplies the "buffer" field. **Return Value:**     BYTE **Example:** ** Fields.AddPair(CUST:Name,  CustQ.Name)  !establish Name pair** ** Fields.AddPair(CUST:Phone, CustQ.Phone) !establish Phone pair** ** Fields.AddPair(CUST:ZIP,  CustQ.ZIP)    !establish ZIP pair** ** !some code** ** IF ~Fields.EqualLeftBuffer         !compare CUST fields to save buffer** **  CASE MESSAGE('Abandon Changes?',,,BUTTON:Yes+BUTTON:No)** **  OF BUTTON:No** **   Fields.AssignRightToLeft         !copy changes to CUST (write) buffer** **  OF BUTTON:Yes** **   Fields.AssignBufferToLeft        !restore original to CustQ (display) buffer** **  END** ** END** **See Also:**     [[addpair add a field pair bufferedpairsclass .htm|AddPair]], [[reallist recognized field pairs .htm|RealList]]