ON ERROR RESUME NEXT in classes
Has anyone ever experimented to find out how
ON ERROR RESUME NEXT
works with custom made VBScript classes?
Will it work inside of individual methods of the class.
Can you place it before calling a property of method of a class?
Yes. You can. I don't remember all the specifics through. I remember needing to do an Err.Clear before exiting the method to avoid unintended side effects upon method exit.
Originally Posted by bklabel1
Hope this helps...
I use On Error Resume Next in all my library's
When I exit the library I do, Environment("ErrorNumber") = err.number
Environment("ErrorDesc") = err.description
Then when I loop through the driver script and if those environment variables are not empty
I write those variables out to an error log..
Last edited by terrymrv; 06-10-2014 at 03:50 AM.
Kevin we'rre using it too:
On Error Resume Next
This is to stop erroring out if a window class object is not dbl-clickable
Appreciated Terry, David, Mark.
This is the information I was looking for.