| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > BufferedPairsClass > BufferedPairsClass Methods >====== AssignBufferToRight (copy from "buffer" fields to "right" fields) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[assignbuffertoleft copy from buffer fields to left fields .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[assignlefttobuffer copy from left fields to buffer fields .htm|{{btn_next_n.gif|Next page}}]] | | || **AssignBufferToRight** {{blk2blue.jpg|blk2blue.jpg}} The **AssignBufferToRight **method copies the contents of each "buffer" field to its corresponding "right" field in the RealList property. **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. **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.EqualRightBuffer        !compare QUEUE fields to save buffer** **  CASE MESSAGE('Abandon Changes?',,,BUTTON:Yes+BUTTON:No)** **  OF BUTTON:No** **   Fields.AssignRightToBuffer     ** **  OF BUTTON:Yes** **   Fields.AssignBufferToRight    ** **  END** ** END** **See Also:**     [[addpair add a field pair bufferedpairsclass .htm|AddPair]], [[reallist recognized field pairs .htm|RealList]]