Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== ResetQueue (fill or refill queue) ====== | |
ResetQueue( resetmode ), VIRTUAL
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, AllowUnfilled, RetainRow, ChangeControl, DeleteControl, SelectControl, Fetch