O'Reilly logo

VB.NET Language in a Nutshell, Second Edition by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required