Results 1 to 4 of 4

Thread: Doubt, Please clarify

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    74

    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:
    1. On error goto Err:
    2. ...
    3. ...
    4. On error resume next
    5. icon=434
    6. On error goto 0
    7. On error goto Err:
    8. ...
    9. ....
    10. Err:
    11.  
    12. ...
    13. ...



    "icon=434" is the line where error may come.

    If anyone knows the perfect answeer please clear my doubt.


    Thanks
    Sanjivani

  2. #2
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    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"

  3. #3
    Frenzied Member Devion's Avatar
    Join Date
    Sep 2000
    Location
    The Netherlands
    Posts
    1,049

    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:.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Posts
    74

    Resolved Re: Doubt, Please clarify

    Thanks Devion :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width