Name
ErrorToString Function
Class
Microsoft.VisualBasic.Conversion
Syntax
ErrorToString([errornumber
])
-
errornumber
Use: Optional
Data Type: 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
Get VB .NET Language in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.