goto next line when error occurs

Author Message
mskmsiva

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 1/18/2012
  • Status: offline
goto next line when error occurs Wednesday, January 18, 2012 9:46 PM (permalink)
0
Hi,
When an error occurs in the first line, I want to skip that line and goto next line of code.
If i use On Error Resume Next in VBScript, it skips all the line that are having the error.
So please help me to skip a particular line if there is an error and continue to the next line.
 
<message edited by mskmsiva on Wednesday, January 18, 2012 9:48 PM>
 
#1
    ebgreen

    • Total Posts : 8227
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:goto next line when error occurs Thursday, January 19, 2012 3:04 AM (permalink)
    0
    Use On Error Resume next right before the line that you want to ignore an error on. Then use On Error Goto 0 right after the line that you want to ignore an error on.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9