Jump to content

Recommended Posts

Guest llagrevol
Posted

Hi,

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.

Thanks

L Lagrevol

Posted

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.

HTH

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...