VB2019 VB2017 VB2015 VB2013 VB2012 VB2010 VB2008 VB6 VB Sample Code 中文VB About Us

Lesson 24 Errors Handling

Error handling is an essential procedure in Visual Basic 2019 programming. Error-free code not only enables the program to run smoothly and efficiently, but it can also prevent all sorts of problems from happening like program crashes or system hangs. Errors often occur due to incorrect input from the user. For example, the user might make the mistake of attempting to enter text (string) to a box that is designed to handle only numeric values such as the weight of a person, the computer will not be able to perform the arithmetic calculation for text, therefore, will create an error. These errors are known as synchronous errors.

Visual Basic 2019 still supports the vb6 errors handling syntax, that is the On Error GoTo program_label structure. However, Visual Basic 2019 has adopted a new approach in handling errors or rather exceptions handling. It is more efficient than the old On Error Goto method, where it can handle various types of errors with the Try…Catch…End Try structure.

To learn the details of errors handling with illustrated sample codes, we suggest you get a copy of VB2019 Handbook.

Price: $50.00


VB2019 Handbook is written by Dr. Liew, the webmaster of our popular online Visual Basic Tutorial, vbtutor.net. This book is a concise guide to learning Visual Basic 2019 for beginners..  This book has been written to complement our free online Visual Basic 2019 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:  
  1. Understand the basic concepts of Visual Basic 2019 programming
  2. Create your own Visual Basic 2019 applications from scratch
  3. Get inspiration from a variety of interesting sample programs
  4. Modify the code samples easily to suit your needs
  5. Learn how to package and distribute your applications

Preview the Book

You need PayPal account to order this E-book. If you don't have PayPal Account, get your PayPal account by clicking the banner below:

Sign up for PayPal and start accepting credit card payments instantly.

*Please wait for 10 seconds for PayPal to redirect you to E-book Download Page after ordering and making payment. If you have problem downloading the book, please contact


Mode of Delivery: Download

Warmest Regards



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.

Contact Information

If you require assistant and technical support, please email


❮ Previous lesson Next lesson ❯

Copyright©2008 Dr.Liew Voon Kiong. All rights reserved |Contact|Privacy Policy