Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On Error Statement in QTP
#2
Not Solved
See below example, hope this will help you to call error handling code in case of any error, make sure that error handler should be in the file where you called on error goto statement:

Code:
Public Sub InitializeMatrix(ByVal Var1 As Object, ByVal Var2 As Object)
   On Error GoTo ErrorHandler
   ' Insert code that might generate an error here
   Exit Sub
ErrorHandler:
   ' Insert code to handle the error here
   Resume Next
End Sub
Reply


Messages In This Thread
On Error Statement in QTP - by Charanpreet - 04-14-2011, 06:06 PM
RE: On Error Statement in QTP - by Jay - 04-15-2011, 10:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Executing statement and commiting statement via qtp unbeliever 6 20,496 01-07-2010, 07:11 PM
Last Post: unbeliever
Toungue "Coninue" statement in QTP caze 3 9,491 12-16-2009, 03:06 PM
Last Post: venkatbatchu

Forum Jump:


Users browsing this thread: 1 Guest(s)