-
Aug 18th, 2005, 06:43 AM
#1
Thread Starter
Lively Member
Doubt, Please clarify
I have one question.
I know which line may give unexpected error. If I write "On error resume next" statement before that particular line, and nullify this error handling after that line and continue with default error handling, will it suppress unexpected errors.
Ex.
VB Code:
On error goto Err:
...
...
On error resume next
icon=434
On error goto 0
On error goto Err:
...
....
Err:
...
...
"icon=434" is the line where error may come.
If anyone knows the perfect answeer please clear my doubt.
Thanks
Sanjivani
-
Aug 18th, 2005, 06:46 AM
#2
Re: Doubt, Please clarify
You need to change your title to describe your problem, otherwise peole may totally ignore your post.
eg "Help with Error Handling, Trappng"
-
Aug 18th, 2005, 06:46 AM
#3
Frenzied Member
Re: Doubt, Please clarify
Yes it will, it will ignore any errors within the function/sub AND any called functions (without error handlers) within the Resume next and Goto Err:.
-
Aug 18th, 2005, 06:59 AM
#4
Thread Starter
Lively Member
Re: Doubt, Please clarify
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|