Guest Greg Thomas Posted June 7, 2004 Share Posted June 7, 2004 How can I get the error code (if at all) when using the ActiveX control? As far as I can see, although I can set the RunErrorsFatal option, there's no way of catching the error. With RunErrorsFatal=1, I would expect something like a VB error to be raised (or whatever the language neutral equivalent is). With RunErrorsFatal=0, I would look at the error flag, but I can't see a way of getting it! Any ideas? Thanks, Greg Link to comment Share on other sites More sharing options...
tutor2000 Posted June 8, 2004 Share Posted June 8, 2004 How can I get the error code (if at all) when using the ActiveX control? As far as I can see, although I can set the RunErrorsFatal option, there's no way of catching the error.With RunErrorsFatal=1, I would expect something like a VB error to be raised (or whatever the language neutral equivalent is).With RunErrorsFatal=0, I would look at the error flag, but I can't see a way of getting it! Any ideas?Thanks,GregWouldn't the errors be the same as autoit3 itself? I'm just learning vbscript so I could quite possibly be wrongRick Link to comment Share on other sites More sharing options...
Administrators Jon Posted June 8, 2004 Administrators Share Posted June 8, 2004 How can I get the error code (if at all) when using the ActiveX control? As far as I can see, although I can set the RunErrorsFatal option, there's no way of catching the error.With RunErrorsFatal=1, I would expect something like a VB error to be raised (or whatever the language neutral equivalent is).With RunErrorsFatal=0, I would look at the error flag, but I can't see a way of getting it! Any ideas?Thanks,GregThere is no "fatal" error in AutoItX because it just returns control back to the calling VBScript with a return value. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now