Err.Source Property


Err.Source Property

Class

Microsoft.VisualBasic.ErrObject

Syntax

     Dim result As String = Err.Source 

Description

The Source property gets or sets the project, application, or class name responsible for generating the active error.

Usage at a Glance

  • When a runtime error occurs, the Source property is automatically assigned the name of the originator of the error.

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

  • The Source property is usually in the format project.class.

See Also

Err Object, Err.Description Property, Err.Number 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