Is there anywhere one can go to find a list of all the error codes and what they signify?
I think it'd be very useful for coding in error handling.
Printable View
Is there anywhere one can go to find a list of all the error codes and what they signify?
I think it'd be very useful for coding in error handling.
Just to clarify, do you mean normal errors or automation errors? :ehh:
Err, no idea. What's the difference?
I was thinking of... like... when trying to open a file that's not there, it throws you an error? You have to catch it and then do something with it, right?
But what if there's an error that pops up when trying to do something WinSock, but you don't know what's wrong? Wouldn't the error code help? And being able to catch that error code could allow you to work around it.
If you get a coding error it should pop up in a message box with a error number and error description.Quote:
Originally Posted by CyberInfantry
danasegarane, your link is not relevant to VB. ;)
The list of errors can be found in VB's help, under the title of "Trappable Errors in Visual Basic" (online version), however unless you know exactly what the issue is (and how to correct it in that situation) simply showing the message is the best thing you can do.
For more info (including several good MS articles), see this FAQ thread.