| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > BrowseClass > BrowseClass Methods >====== ResetQueue (fill or refill queue) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[resetfromview reset browse from current result set .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[resetresets copy the reset fields .htm|{{btn_next_n.gif|Next page}}]] | | || **ResetQueue(**// resetmode //**), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **ResetQueue** | Fills or refills the browse queue. | | //resetmode// | A numeric constant, variable, EQUATE, or expression that determines how ResetQueue determines the highlighted record after the reset. A value of Reset:Queue highlights the currently selected item. A value of Reset:Done highlights a record based on the view's current position and other factors, such as the RetainRow property. | The **ResetQueue **method fills or refills the browse queue and appropriately enables or disables Change, Delete, and Select controls. The refill process depends on the value of the //resetmode //parameter and several other BrowseClass properties, including ActiveInvisible, AllowUnfilled, RetainRow, etc. A //resetmode //value of Reset:Queue usually produces a more efficient queue refill than Reset:Done. **Implementation:** ResetQueue calls the Fetch method to fill the queue. The //resetmode //EQUATEs are declared in ABBROWSE.INC as follows: **   ITEMIZE,PRE(Reset)** **Queue  EQUATE** **Done   EQUATE** **   END** **Example:** **DeleteMyBrowse ROUTINE** ** !delete code** ** MyBrowse.ResetQueue(Reset:Queue)    !after delete, refresh Q** ** MyBrowse.PostNewSelection           !after delete, post a new selection event** **                                     !so window gets properly refreshed** **See Also:     **[[activeinvisible obscured browse list action .htm|ActiveInvisible]], [[allowunfilled display filled list .htm|AllowUnfilled]], [[retainrow highlight bar refresh behavior .htm|RetainRow]], [[changecontrol browse change update control number .htm|ChangeControl]], [[deletecontrol browse delete control number .htm|DeleteControl]], [[selectcontrol browse select control number .htm|SelectControl]], [[fetch get a page of browse items .htm|Fetch]]