endtry — 结束处理异常的块。
endtry( : : : )
借助 try、catch、endtry 和 throw 算子,可在 HDevelop 中实现动态异常处理,其功能与 C++ 和 C# 中的异常处理机制相当。HDevelo p异常处理的基本概念已在 try、throw 和
dev_set_check 算子说明以及 “HDevelop 用户指南” 中进行阐述。
算子 endtry 关闭了 try 和 catch 算子打开的异常处理块。
C 语言不支持导出 try、catch、endtry 和 throw 算子,仅 C++、C# 和 VisualBasic/.NET 语言支持。其中仅后者支持跨函数抛出异常。
endtry 始终返回 2 ( H_MSG_TRUE )。
try,
catch,
throw,
dev_get_exception_data,
dev_set_check
基础