This function provides information about whether a report finished normally or was cancelled.
Parameters
None.
Return Value
Character. Returns "Y" if the current report was interrupted before processing its full data scope. Returns "N" if there is no current report or if the current report has not been interrupted.
Remarks
Example
The following example code is from the utilityReportListener class, which is responsible for file-handling procedures. When it closes a file at the conclusion of a report run, it checks to see what type of message should be displayed to the user regarding the success or failure of the report run. If the report run did not have any errors, the class uses SYS(2024) to determine whether the results of the report run are complete before assembling an appropriate message. For more information about this class, see ReportListener Utility and File-handling Foundation Class.
| | Copy Code |
|---|
* excerpted from
* utilityReportListener.closeTargetFile method
IF THIS.HadError
THIS.DoMessage(OUTPUTCLASS_CREATEERRORS_LOC, ;
MB_ICONEXCLAMATION )
ELSE
THIS.DoMessage( OUTPUTCLASS_SUCCESS_LOC + ;
IIF(SYS(2024)="Y", ;
CHR(13)+OUTPUTCLASS_REPORT_INCOMPLETE_LOC,""),;
MB_ICONINFORMATION)
ENDIF |
See Also