Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== ResetFromFile (fill queue starting from file POSITION) ====== | |
ResetFromFile, VIRTUAL
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.
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