The usage of Description attribute in VBS
This article mainly introduces "the usage of Description attribute in VBS". In daily operation, I believe that many people have doubts about the usage of Description attribute in VBS. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "the usage of Description attribute in VBS". Next, please follow the editor to study!
Returns or sets the descriptive string associated with the error.
Object.Description [= stringexpression]
Parameter object
Err object.
Stringexpression
A string expression that contains the error description.
Description
The Description property contains a short description of the error. This property is used to alert the user to errors that you cannot or do not want to handle. When a user-defined error is generated, a brief description of the error is assigned to this property. If the Description property is not populated and the value of Number corresponds to a VBScript runtime error, a descriptive string about the error is returned.
On Error Resume NextErr.Raise 6 'generated an overflow error. MsgBox ("Error #" & CStr (Err.Number) & "& Err.Description) Err.Clear 'clears the error. At this point, the study of "the use of the Description attribute in VBS" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!