Jump to content

Recommended Posts

Posted (edited)

Very rarely (and not repeatable) an error would pop-up in my AutoIT program (something like "subscript not found for variable used in an array") for which I'd like to suppress once its compiled (ie. I need to turn off AutoIT error messages to the user) and if possible, handle (such as resetting the program or at least displaying my own friendly message). Is this possible please?

Thank you in anticipation,

Tippex

Edited by Tippex
Posted (edited)

RunErrorsFatal option was only for Run(), RunWait().

For "array subscript" errors there is no way to globally catch such errors.

You must use precise testing and add your own checks at places before accessing array items where you expect problems/errors.

Compare your subscript index with UBound()

Edited by Zedna
Posted

You can also is IsArray() to make sure that the data is an array

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Posted

Dôh...

Is it me, or isn't the helpfile updated as well muttley

Thanks for the advice. An "ErrorsFatal" setting would be great if it existed.

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...