Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"On Error Resume Next" scope in the script.
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
The feature itself is designed to over-run all of the vb errors encountered during runtime. However, it is not a hole in the net. The feature Err.number and Err.Description add value for you to capture them during runtime. If you want to disable On Error Resume Next use the On Error Got to 0.

Code:
On error Resume next
oStr= "My test"
oLen = Lenghthy(oStr)
msgbox Err.Description
On Error Goto 0
oLen = Lenghthy(oStr)
msgbox Err.Description
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: "On Error Resume Next" scope in the script. - by basanth27 - 02-01-2012, 08:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  VB Script access denied error when executing alm scripts in planned host Kumar Reshma 0 1,517 05-28-2018, 04:04 PM
Last Post: Kumar Reshma
  Windows 8 envirnment error while running QTP script. Rashmi Rajpal 0 2,433 10-10-2013, 12:21 PM
Last Post: Rashmi Rajpal
  qtp resume help me shyam.emmadi 0 2,218 04-21-2011, 03:00 PM
Last Post: shyam.emmadi
  Run the QTPTest script from the Quality Center then an error occurs shivakumar6g 8 12,768 03-04-2011, 11:52 AM
Last Post: shivakumar6g

Forum Jump:


Users browsing this thread: 2 Guest(s)