Message 1 of 2
Error Handler
Not applicable
12-20-2005
12:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm having an issue with on error statements within my error handler. What I want to do is exit the function and delete all selection sets (only if they exist) if an error occurs. Is it possible to have an "On Error Resume Next" statement within the errorhandler? It seems like this statement is not read within the error handler as i still get an error.
I.e.
Function blah........
on error goto Errhandler
:
Exit Function
Errhandler:
On Error Resume Next
sset.delete <-- generates error on this line
sset2.delete
on Error Goto 0
End function
I'm having an issue with on error statements within my error handler. What I want to do is exit the function and delete all selection sets (only if they exist) if an error occurs. Is it possible to have an "On Error Resume Next" statement within the errorhandler? It seems like this statement is not read within the error handler as i still get an error.
I.e.
Function blah........
on error goto Errhandler
:
Exit Function
Errhandler:
On Error Resume Next
sset.delete <-- generates error on this line
sset2.delete
on Error Goto 0
End function