HOW DOES THE ‘ERR’ OBJECT LOOK LIKE ?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
VB.Net 
 1313  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    How does the ‘Err’ object look like ?

    Error handling that evolve around the various On Error.. statements are referred to as unstructured error handling. The build in object Err is used in this type of error handling. This object has several properties and methods as listed below:
    Properties: 
    Description: a short description of the error
    HelpContext: context ID for the help topic associated with the error
    HelpFile: fully qualified file name if any
    Number: Number associated with the error
    Source: a string that specifies the object that generated the error.
    Method:
    Clear: Clears the set values of all properties of the error object.
    Raise: Generates a runtime error and sets the properties of the Err object to the values supplied in the method call

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!