Writing errors handling code is a good practice for Visual Basic 2015 programmers, do not rush to finish a program by omitting the errors handling code. Visual Basic 2015 has improved a lot in its built-in errors handling capabilities compared to Visual Basic 6. For example, when the user attempts to divide a number by zero, Visual Basic 2015 will not return an error message but gives the ‘infinity’ as the answer (although this is mathematically incorrect because it should be undefined)
Visual Basic 2015 still supports the VB6 errors handling syntax, that is the On Error GoTo program_label structure. However, it has a more advanced error handling algorithm, i.e. Try...Catch...End Try method.
To learn the details of error handling, we suggest you get hold a copy of Visual Basic 2015 Made Easy.
AUTHOR: DR. LIEW VOON KIONGVisual Basic 2015 Made Easy is written by Dr. Liew, the webmaster of our popular online Visual Basic Tutorial, vbtutor.net. This book is a complete guide to mastering Visual Basic 2015, from beginner to intermediate programmers. This book has been written to complement our free online Visual Basic 2015 tutorial with much more content. It is also an excellent reference text for high school or college-level computer science courses. Reading this book will allow you to:
This site and the products and services offered on this site are not associated, affiliated, endorsed, or sponsored by Microsoft, nor have they been reviewed tested or certified by Microsoft.
If you require assistant and technical support, please email