Err.Description Property


Err.Description Property

Class

Microsoft.VisualBasic.ErrObject

Syntax

     Dim result As String = Err.Description 

Description

The Description property gets or sets a general text description of a runtime error.

Usage at a Glance

  • When a runtime error occurs, the Description property is automatically assigned the standard description of the error.

  • While you can assign the Description property directly, the Err.Raise method is a better way to assign the values of a custom error.

  • You can override a standard error description by assigning your own description to the Description property for both VB errors and application-defined errors.

See Also

Err Object, Err.Number Property, Err.Source Property




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net