User Tools

Site Tools


resetfromfile_fill_queue_starting_from_file_position_.htm
Navigation:  ABC Library Reference > BrowseClass > BrowseClass Methods >====== ResetFromFile (fill queue starting from file POSITION) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

ResetFromFile, VIRTUAL

blk2blue.jpg

The ResetFromFile method fills or refills the browse queue starting from the current POSITION of the primary file. If no POSITION has been established, ResetFromFile fills the browse queue starting from the beginning of the file.

TipBox.jpg

Use ResetFromFile when the primary file position is valid but secondary records and their contents may not be. For example, when returning from an update.

Implementation:

ResetFromFile succeeds even if the record buffer is cleared and is typically used to get the current record after an update.

Example:

MyBrowseClass.ResetFromAsk PROCEDURE(*BYTE Request,*BYTE Response)

 CODE

 IF Response = RequestCompleted

  FLUSH(SELF.View)

  IF Request = DeleteRecord

   DELETE(SELF.ListQueue)

   SELF.ResetQueue(Reset:Queue)    !refill queue after delete

  ELSE

   SELF.ResetFromFile         !refill queue after insert or change

  END

 ELSE

  SELF.ResetQueue(Reset:Queue)

 END

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