Error_Report - BasicReport
Sent whenever an error is generated
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| ErrNum | Integer | the error number |
| Err_Line | Integer | the error line |
| ErrMsg | String | the error message |
Syntax
Procedure Error_Report Integer ErrNum Integer Err_Line String ErrMsg
Description
When a report is started, the main report (the outermost of a group of nested reports) is assigned as the error object. This means that all errors are sent to this object. The Error_Report message is sent whenever an error is generated. By default, the status panel is removed, the property Error_Check_State is set to True, and the error is then directed to the normal error handler (the object defined as the error object when the report started). If Status_Log_State is True, errors will be written to the status log file. If Display_Error_State is true, the error is directed to the global error-handler object. This sends OnError.
| Col 1 | Col 2 |
|---|---|
| Note: | Previous versions of DataFlex only required two parameters for this message - the error number and line number was packed in a single folded integer. Three parameters are now required. If you have old code that uses this, it must be changed. |