dev_set_check( : : Mode : )
dev_set_check specifies how HDevelop has to react in case of an error, i.e., if the return state of an operator is not H_MSG_TRUE (2).
If Mode has the value 'give_error'---which is the system default---an erroneous operator call will throw an exception, that can be caught within the HDevelop program by the catch statement. However, if there is no surrounding try-catch block in the HDevelop program and the program is executed within HDevelop, the program execution stops at the erroneous operator and an error message box is opened to display the error text. In addition, the appropriate operator call is entered into the Operator Window, so that the user can easily edit and possibly correct the parameters of the erroneous operator call. If the procedure was called from HDevEngine and the exception is not caught within the HDevelop program, an HDevEngineException object is thrown and the procedure is left.
If Mode is set to '~give_error', the error will be ignored and the program continues with the next operator. dev_set_check('~give_error') is intended to be used in connection with dev_error_var, which allows to check the result state that is returned by the operator calls.
如果 Mode 的值为 'give_error'---这是系统默认值---错误的运算符调用将引发异常,该异常可以通过 catch 语句在 HDevelop 程序中捕获。但是,如果 HDevelop 程序中没有周围的 try-catch 块,并且程序在 HDevelop 中执行,则程序执行将在错误的运算符处停止,并打开一个错误消息框以显示错误文本。此外,在“操作员窗口”中输入相应的操作员调用,以便用户可以轻松编辑并可能更正错误操作员调用的参数。如果该过程是从 HDevEngine 调用的,并且未在 HDevelop 程序中捕获异常,则会引发 HDevEngineException 对象并保留该过程。
如果 Mode 设置为“~give_error”,则错误将被忽略,程序将继续
————发行版本可以设置为:dev_set_check ('~give_error')
————测试版本可以设置为:dev_set_check ('give_error')
标签:set,dev,HDevelop,error,operator,check From: https://www.cnblogs.com/echo-efun/p/18047572