Klaatu Posted March 24, 2010 Share Posted March 24, 2010 In the help file it statesYou can only have ONE Error Event Handler active per AutoIt script. If you are writing UDF's containing COM functions, you can check if the user has an Error Handler...If no Error Handler was active, you can temporarily install your own during the UDF call.OK, I understand that (I think) and assign my own like this:$oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handlerBut now I want to set it back to "null", "empty", default, whatever. IOW if a COM error occurs the script should generate an error and end. How would I do that? My Projects:DebugIt - Debug your AutoIt scripts with DebugIt! Link to comment Share on other sites More sharing options...
Yoriz Posted March 24, 2010 Share Posted March 24, 2010 To clear it, empty the variable with$oMyError = 0 GDIPlusDispose - A modified version of GDIPlus that auto disposes of its own objects before shutdown of the Dll using the same function Syntax as the original.EzMySql UDF - Use MySql Databases with autoit with syntax similar to SQLite UDF. 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