{"id":1907,"date":"2012-10-16T23:33:09","date_gmt":"2012-10-16T15:33:09","guid":{"rendered":"http:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/"},"modified":"2015-05-07T20:21:04","modified_gmt":"2015-05-07T12:21:04","slug":"errors-handling-in-visual-basic","status":"publish","type":"post","link":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/","title":{"rendered":"Errors Handling in Visual Basic"},"content":{"rendered":"<p>Error\u00a0handling is an essential procedure\u00a0 in Visual Basic programming because it can help make the program error-free. An error-free program can run smoothly and efficiently, and the user does not have to face all sorts of problems such as program crash or system hang.<\/p>\n<p>Errors often occur due to incorrect input from the user. For example, the user might make the mistake of attempting to ask the computer to divide a number by zero which will definitely causes system error. Another example is the user might enter a 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 arithmetic calculation for text therefore will create an error. These errors are known as synchronous errors.<\/p>\n<p>Therefore a good programmer should be more alert to the parts of program that could trigger errors and should write errors handling code to help the user in managing the errors. Writing errors handling code should be considered a good practice for Visual Basic programmers, so do not try to finish a program fast by omitting the errors handling code. However, there should not be too many errors handling code in the program as it create problems for the programmer to maintain and troubleshoot the program later.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error\u00a0handling is an essential procedure\u00a0 in Visual Basic programming because it can help make the program error-free. An error-free program can run smoothly and efficiently, and the user does not have to face all sorts of problems such as program crash or system hang. Errors often occur due to incorrect input from the user. For &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Errors Handling in Visual Basic<\/span><\/a><\/p>\n","protected":false},"author":23013,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1907","post","type-post","status-publish","format-standard","hentry","category-latestnews"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Errors Handling in Visual Basic - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Errors Handling in Visual Basic - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"Error\u00a0handling is an essential procedure\u00a0 in Visual Basic programming because it can help make the program error-free. An error-free program can run smoothly and efficiently, and the user does not have to face all sorts of problems such as program crash or system hang. Errors often occur due to incorrect input from the user. For &hellip; Continue reading Errors Handling in Visual Basic\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Vbtutor\" \/>\n<meta property=\"article:published_time\" content=\"2012-10-16T15:33:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-07T12:21:04+00:00\" \/>\n<meta name=\"author\" content=\"Liew Voon Kiong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@liewvk\" \/>\n<meta name=\"twitter:site\" content=\"@liewvk\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Liew Voon Kiong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\"},\"author\":{\"name\":\"Liew Voon Kiong\",\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d\"},\"headline\":\"Errors Handling in Visual Basic\",\"datePublished\":\"2012-10-16T15:33:09+00:00\",\"dateModified\":\"2015-05-07T12:21:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\"},\"wordCount\":225,\"articleSection\":[\"Latest News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\",\"url\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\",\"name\":\"Errors Handling in Visual Basic - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"datePublished\":\"2012-10-16T15:33:09+00:00\",\"dateModified\":\"2015-05-07T12:21:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Errors Handling in Visual Basic\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vbtutor.net\/#website\",\"url\":\"https:\/\/www.vbtutor.net\/\",\"name\":\"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"description\":\"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.\",\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d\",\"name\":\"Liew Voon Kiong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vbtutor.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g\",\"caption\":\"Liew Voon Kiong\"},\"url\":\"https:\/\/www.vbtutor.net\/index.php\/author\/ajt7051vbt\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Errors Handling in Visual Basic - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/","og_locale":"en_US","og_type":"article","og_title":"Errors Handling in Visual Basic - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"Error\u00a0handling is an essential procedure\u00a0 in Visual Basic programming because it can help make the program error-free. An error-free program can run smoothly and efficiently, and the user does not have to face all sorts of problems such as program crash or system hang. Errors often occur due to incorrect input from the user. For &hellip; Continue reading Errors Handling in Visual Basic","og_url":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/","og_site_name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","article_publisher":"https:\/\/www.facebook.com\/Vbtutor","article_published_time":"2012-10-16T15:33:09+00:00","article_modified_time":"2015-05-07T12:21:04+00:00","author":"Liew Voon Kiong","twitter_card":"summary_large_image","twitter_creator":"@liewvk","twitter_site":"@liewvk","twitter_misc":{"Written by":"Liew Voon Kiong","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/#article","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/"},"author":{"name":"Liew Voon Kiong","@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d"},"headline":"Errors Handling in Visual Basic","datePublished":"2012-10-16T15:33:09+00:00","dateModified":"2015-05-07T12:21:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/"},"wordCount":225,"articleSection":["Latest News"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/","url":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/","name":"Errors Handling in Visual Basic - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"datePublished":"2012-10-16T15:33:09+00:00","dateModified":"2015-05-07T12:21:04+00:00","author":{"@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d"},"breadcrumb":{"@id":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.vbtutor.net\/index.php\/2012\/10\/16\/errors-handling-in-visual-basic\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Errors Handling in Visual Basic"}]},{"@type":"WebSite","@id":"https:\/\/www.vbtutor.net\/#website","url":"https:\/\/www.vbtutor.net\/","name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"Start learning Visual Basic from beginner to advanced. Includes VB.NET, VBA, and classic VB tutorials for students and professionals.","inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/01c0e3de22b7692f291440df0ef6601d","name":"Liew Voon Kiong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vbtutor.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/298e9b7c976f23b8bb0deac1079900704b531945d53dab6cda022294a3dda3d4?s=96&d=identicon&r=g","caption":"Liew Voon Kiong"},"url":"https:\/\/www.vbtutor.net\/index.php\/author\/ajt7051vbt\/"}]}},"_links":{"self":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts\/1907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/users\/23013"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/comments?post=1907"}],"version-history":[{"count":2,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts\/1907\/revisions"}],"predecessor-version":[{"id":1977,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/posts\/1907\/revisions\/1977"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=1907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=1907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=1907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}