ErrorToString Function

   
ErrorToString Function

Class

Microsoft.VisualBasic.Conversion

Syntax

 ErrorToString([   errornumber   ]) 
errornumber (optional; Long)

A numeric error code

Return Value

A String containing an error message

Description

Returns the error message or error description corresponding to a particular error code

Rules at a Glance

  • If errornumber is present, the function returns the text of the error message corresponding to that error code.

  • If no arguments are passed to the function, it returns the text of the error message corresponding to the Description property of the Err Object.

See Also

Err.Description Property

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

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