Navigation: ABC Library Reference > BrowseClass > BrowseClass Methods >====== ResetFromView (reset browse from current result set) ====== | |
ResetFromView, VIRTUAL
The ResetFromView method resets the BrowseClass object to conform to the current result set.
Use ResetFromView when you want to reset for any changes that may have happened to the entire record set, such as new records added or deleted by other workstations. For large amounts of records (data), this can cause a slow down in browse performance.
Implementation:
The SetSort method calls the ResetFromView method.
The ResetFromView method readjusts the scrollbar thumb if necessary. The ABC Templates override the BrowseClass.ResetFromView method to recalculate totals if needed.
Example:
BRW1.ResetFromView PROCEDURE
ForceRefresh:Cnt LONG
CODE
SETCURSOR(Cursor:Wait)
SELF.Reset
LOOP
CASE SELF.Next()
OF Level:Notify
BREAK
OF Level:Fatal
RETURN
END
SELF.SetQueueRecord
ForceRefresh:Cnt += 1
END
ForceRefresh = ForceRefresh:Cnt
SETCURSOR()