Navigation: ABC Library Reference > ReportManager Class > ReportManager Methods >====== Next (get next report record) ====== | |
Next, VIRTUAL, PROC
The Next method gets the next report record and returns a value indicating whether the the report is completed, cancelled, or in progress. Valid return values are:
Level:Benign | proceeding normally | |
Level:Notify | completed normally | |
Level:Fatal | cancelled or ended abnormally |
Member of: ReportManager
Implementation:
The Next method calls the ProcessClass.Next method to get the next report record. When the report is completed or canceled, the Next method sets the Response property and POSTs an EVENT:CloseWindow to end the progress window procedure.
Return Data Type: BYTE
Example:
ReportManager.Open PROCEDURE
CODE
PARENT.Open
SELF.Process.Reset
IF ~SELF.Next()
IF ~SELF.Report&=NULL
OPEN(SELF.Report)
IF ~SELF.Preview &= NULL
SELF.Report{PROP:Preview} = SELF.PreviewQueue.Filename
END
END
END
See Also: ProcessClass.Next, WindowManager.Response