Navigation: ABC Library Reference > ProcessClass > ProcessClass Methods >====== SetProgressLimits (calibrate the progress monitor) ====== | |
SetProgressLimits
The SetProgressLimits method supplies the upper and lower boundaries of the result set–considering the active sort order, range limits, and filters–to the StepClass object that monitors the progress of the process.
The Init method specifies the StepClass object.
Member of: ProcessClass
Implementation:
The SetProgressLimits method assumes a StepClass object is specified. The Reset method conditionally calls the SetProgessLimits method. The SetProgressLimits method calls the StepClass.SetLimits method.
Example:
MyProcessClass.Reset PROCEDURE !prepare to process the records
CODE
SELF.RecordsProcessed = 0 !set RecordsProcessed to 0
SELF.SetProgressLimits !set StepClass boundaries based
! on actual data processed
PARENT.Reset !call ViewManager.Reset to
!position to the first record
See Also: Init, Reset, StepClass.SetLimit