The operator dev_set_check specifies if error message boxes are displayed at all.
To turn message boxes off, use
dev_set_check('~give_error')
HDevelop will then ignore any errors in the program. Consequently, the programmer has to take care of the error handling. Every operator call provides a return value (or error code) which signals success or failure of its execution. This error code can be accessed through a designated error variable:
dev_error_var(ErrorCode, 1)
This operator call instantiates the variable ErrorCode. It stores the error code of the last executed operator. Using this error code, the program can depend its further flow on the success of an operation.
...
if (ErrorCode != H_MSG_TRUE)
* react to error
endif
* continue with program
...
The error message related to a given error code can be obtained with the operator get_error_text. This is useful when reporting errors back to the user of the program.
If the error is to be handled in a calling procedure, an appropriate output control variable has to be added to the interface of each participating procedure, or the error variable has to be defined as a global variable (see section “Scope of Variables (local or global)”).
global tuple ErrorCode dev_error_var(ErrorCode, 1) ...