Get the App
SLTechnology News&Howtos  ›  Development  › 

The usage of Description attribute in VBS

Shulou Source: shulou.com Published: 2022-06-03 19:37:47 10月04日 Update

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!

Tags: Errors attributes learning characters strings more users illustrative help practical short next parameters objects articles methods theory knowledge briefs articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Information Shulou Technology Linux MySQL