Carlo H. Francisco
Member
Good day guys,
Just want to ask, if there is a similar code here like (TRY, CATCH) in vb.net?
Just want to ask, if there is a similar code here like (TRY, CATCH) in vb.net?
{slib/sliberr.i}
define var cError as char no-undo.
define var cErrorMsg as char no-undo.
{slib/err_try}:
run something {slib/err_no-error}. /* you can also use {slib/err_throw "'<exception name>'" [params]}. */
/* you can use nested try blocks for as many levels as you'd like */
{slib/err_catch cError cErrorMsg}: /* catch is optional */
message cErrorMsg.
/* you can use {slib/err_throw last}. to retrhow the catched error */
{slib/err_finally}: /* finally is optional */
message "finally".
{slib/err_end}.
message "after",