Erl Property


Erl Property

Class

Microsoft.VisualBasic.Information

Syntax

     Erl 

Description

The Erl property indicates the line number on which an error occurred.

Usage at a Glance

  • Erl returns the line number only if one has been provided in the source code.

  • If the error occurs on a line that does not have a line number, Erl returns 0.

  • Erl is not affected by compiler settings. Compiling with the /debug- switch does not prevent Erl from accurately reporting the line number.

  • Line numbersnumeric labels followed by a colonare rarely used in modern VB code.

Version Differences

In VB 6, line numbers are distinct from labels and do not require any colon or other symbol (other than whitespace) to separate them from source code on the same lines. In .NET VB code, line numbers are labels that must be followed by a colon.

See Also

Err Object




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