Forum Discussion

kcsahu777's avatar
kcsahu777
Contributor
13 years ago

Error Handling

I am using VB code.



How to handle error such as "Object Not found"



I do not want the Test Complete to stop and display message like the attached file.



Also "on error resume next" does not work for me as I want that it should return some status like 'false' to the main calling function.
  • VLapidus's avatar
    VLapidus
    Frequent Contributor
    Handle it like this:



      On Error Resume Next

      Set a = d

      If Err.Number <> 0 Then

        Log.Message Err.Description

      End If