VB.NET Language in a Nutshell
| 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