| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ViewManager > ViewManager Methods >====== PrimeRecord (prepare a record for adding:ViewManager) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[previous get the previous element .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[reset reset the view position .htm|{{btn_next_n.gif|Next page}}]] | | || **PrimeRecord(**// //[//suppress clear//]// //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **PrimeRecord** | Prepares the VIEW's primary file record buffer to add a new record. | | //suppress clear// | An integer constant, variable, EQUATE, or expression that indicates whether or not to clear the record buffer. A value of zero (0 or False) clears the buffer; a valueof one (1 or True) does not clear the buffer. If omitted, //suppress clear// defaults to zero (0). | The **PrimeRecord **method prepares the VIEW's primary file record buffer with initial values to add a new record. **Implementation:** The PrimeRecord method uses the primary file's FileManager.PrimeRecord method to prime the record. Then it uses any applicable range limit information to prime other fields. The //suppress clear //parameter lets you clear or retain any other values in the record buffer. **Example:** ** CASE FIELD()** ** OF ?InsertButton             !on insert button** **  CASE EVENT()** **  OF EVENT:Accepted           !if insert clicked** **   MyView.PrimeRecord          !prime the record for adding** **   !insert the new record** **  END** ** END** **See Also:     **[[primerecord prepare a record for adding filemanager .htm|FileManager.PrimeRecord]]