User Tools

Site Tools


resetqueue_fill_or_refill_queue_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== ResetQueue (fill or refill queue) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ResetQueue( resetmode ), VIRTUAL

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, AllowUnfilled, RetainRow, ChangeControl, DeleteControl, SelectControl, Fetch

resetqueue_fill_or_refill_queue_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1