Jump to content
Sign in to follow this  
Guest llagrevol

Catch Error Messages

Recommended Posts

Guest llagrevol


Is there a possibility to :

When there is an error in the script , not display an error message on the workstation but log it for example with _FileWriteLog and resume the script.


L Lagrevol

Share this post

Link to post
Share on other sites

Yep .. that's already available :D

All you need ot do is check @error whenever it might get set, and call your UDF _FileWriteLog if @error is not zero.

Of course, design-time errors won't get trapped this way. Example: syntax errors, or when you refer to a variable as an array when it isn't an array. Runtime errors are what your UDF ceverly logs by checking @error.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.