version 6.0
DR Error {(message)} Integer
| Parameter | Type | Description | |
| message | Text | Receives error message | |
| Function result | Integer | Status of the last operation performed by 4D Draw |
Description
The command DR Error returns a number that represents the status of the last operation performed by 4D Draw.
If DR Error equals 0, the last operation did not cause an error. If DR Error does not equal 0, an error occurred during the last operation. If several areas are active on the same form, DR Error returns the last error, without discriminating between areas. See Appendix C, Event Codes for a complete list of event codes.
If the optional message parameter is passed to DR Error, it must be a variable and will contain the text of the error after the call.
DR Error could return a 4D error code if the error is a general database management error.
See Also