Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

on error resume next

Status
Not open for further replies.

Discord

Programmer
Dec 7, 2001
133
0
0
US
is there anyway to check to see if a page has set on error resume next?
i want to do something like

check to see if on error resume next has been set
on error resume next
do something that may raise an error
if on error resume next was not set then on error goto 0

does anybody know if that's possible?
 
Check the Err.Number to be sure it's 0 (zero). If it is 0, then an error has not occurred. Snaggs
tribesaddict@swbell.net
Life can only be understood backwards; but it must be lived forwards.
 
i don't want to know if an error has occured. i know how to check that. i want to know if there's a way to check to see if "on error resume next" has been called.
 
Well, you could do something like this, since it's not built into VBScript.

On Error Resume Next
InResume = True

<Do some code>

If InResume Then
On Error Goto 0
InResume = False
End If
Snaggs
tribesaddict@swbell.net
Life can only be understood backwards; but it must be lived forwards.
 
Um....
It was my understanding that on Error Resume Next is called when an error occurs, so using logic, if you know that an error is occussing wouldn't you know that on Error resume Next had been executed?

If I am incorrexct somone clear me up on this, haven't bothered with it much, generally write my own error checking.
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top