{"id":63759,"date":"2022-06-20T08:01:28","date_gmt":"2022-06-20T08:01:28","guid":{"rendered":"https:\/\/itsourcecode.com\/?p=63759"},"modified":"2023-11-21T03:05:11","modified_gmt":"2023-11-21T03:05:11","slug":"vb-net-basic-syntax","status":"publish","type":"post","link":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/","title":{"rendered":"VB.net Basic Syntax"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-vb-net-syntax\"><strong>VB.net Syntax<\/strong><\/h2>\n\n\n\n<p><strong>Visual Basic<\/strong> has a very simple programming <strong>VB.net Basic Syntax<\/strong>. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The language is not case-sensitive, and it is easy even for beginners to start coding.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The VB.net programming language is an object-oriented programming language. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>A program in the <strong>Object-Oriented Programming<\/strong> approach is made up of many objects that interact with one another through actions. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Methods are the actions that an object can perform. Objects of the same type are said to be of the same type, or more commonly, of the same class.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>A VB.net application can be characterized as a collection of objects that communicate by invoking the methods of each other. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Let&#8217;s take a quick look at the definitions of <strong><em>class<\/em><\/strong>, <strong><em>object<\/em><\/strong>, <strong><em>methods<\/em><\/strong>, and <strong><em>instance variables<\/em><\/strong>.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-object\"><strong>1. Object<\/strong><\/h3>\n\n\n\n<p><strong>Objects<\/strong> have states and behaviors. Example: A dog has states &#8211; color, name, breed as well as behaviors &#8211; wagging, barking, eating, etc. An object is an instance of a class.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-class\"><strong>2. Class<\/strong><\/h3>\n\n\n\n<p>A <strong>class<\/strong> can be defined as a template\/blueprint that describes the behaviors\/states that objects of its type support.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-3-methods\"><strong>3. Methods<\/strong><\/h3>\n\n\n\n<p>A <strong>method<\/strong> is basically a behavior. A class can contain many methods. It is in methods where the logic is written, data is manipulated and all the actions are executed.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-4-instance-variables\"><strong>4. Instance Variables<\/strong><\/h3>\n\n\n\n<p>Each object has its unique set of <strong>instance variables<\/strong>. An object&#8217;s state is created by the values assigned to these instance variables.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-a-rectangle-class-in-vb-net\"><strong>A Rectangle Class in VB.net<\/strong><\/h2>\n\n\n\n<p>Consider the Rectangle object as an example. It has dimensions such as length and width. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Depending on the design, methods for taking these attributes&#8217; values, calculating area, and presenting details may be required.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Let&#8217;s take a look at a Rectangle class implementation and analyze VB.net fundamental syntax based on our findings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>Imports System\nPublic Class Rectangle\n   Private length As Double\n   Private width As Double\n\n   'Public methods\n   Public Sub AcceptDetails()\n      length = 4.5\n      width = 3.5\n   End Sub\n\n   Public Function GetArea() As Double\n      GetArea = length * width\n   End Function\n   Public Sub Display()\n      Console.WriteLine(\"Length: {0}\", length)\n      Console.WriteLine(\"Width: {0}\", width)\n      Console.WriteLine(\"Area: {0}\", GetArea())\n\n   End Sub\n\n   Shared Sub Main()\n      Dim r As New Rectangle()\n      r.Acceptdetails()\n      r.Display()\n      Console.ReadLine()\n   End Sub\nEnd Class<\/strong><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>You can test the above example here! \u27a1\u00a0<a href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-online-compiler-and-ide\/\">VB.net Online Compiler<\/a><\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>When the above code is compiled and executed, it produces the following result:<\/p>\n\n\n\n<p class=\"has-base-3-color has-contrast-background-color has-text-color has-background\">Length: 4.5<br>Width: 3.5<br>Area: 15.75<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Here, we are using a Class that contains both code and data. You use classes to create objects. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>For example, in the code, r is a Rectangle object.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>An object is an instance of a class.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dim r As New Rectangle()<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>A class may have members that can be accessible from outside the class if so specified. Data members are called fields and procedure members are called methods.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Shared methods or static methods can be invoked without creating an object of the class. Instance methods are invoked through an object of the class.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Shared Sub Main()\n   Dim r As New Rectangle()\n   r.Acceptdetails()\n   r.Display()\n   Console.ReadLine()\nEnd Sub<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-identifiers\"><strong>Identifiers<\/strong><\/h2>\n\n\n\n<p>An identifier is a name used to identify a class, variable, function, or any other user-defined item.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The basic rules for naming classes in VB.net are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A name must begin with a letter that could be followed by a sequence of letters, digits (0 &#8211; 9), or underscore. The first character in an identifier cannot be a digit.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It must not contain any embedded space or symbol like<strong><em>? &#8211; +! @ # % ^ &amp; * ( ) [ ] { } . ; : &#8221; &#8216; \/<\/em><\/strong> and <strong><em>.<\/em><\/strong> However, an underscore ( _ ) can be used.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It should not be a reserved keyword.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-vb-net-keywords\"><strong>VB.net Keywords<\/strong><\/h2>\n\n\n\n<p>The following table lists the <strong><em>VB.net reserved keywords<\/em><\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>AddHandler<\/td><td>AddressOf<\/td><td>Alias<\/td><td>And<\/td><td>AndAlso<\/td><td>As<\/td><td>Boolean<\/td><\/tr><tr><td>ByRef<\/td><td>Byte<\/td><td>ByVal<\/td><td>Call<\/td><td>Case<\/td><td>Catch<\/td><td>CBool<\/td><\/tr><tr><td>CByte<\/td><td>CChar<\/td><td>CDate<\/td><td>CDec<\/td><td>CDbl<\/td><td>Char<\/td><td>CInt<\/td><\/tr><tr><td>Class<\/td><td>CLng<\/td><td>CObj<\/td><td>Const<\/td><td>Continue<\/td><td>CSByte<\/td><td>CShort<\/td><\/tr><tr><td>CSng<\/td><td>CStr<\/td><td>CType<\/td><td>CUInt<\/td><td>CULng<\/td><td>CUShort<\/td><td>Date<\/td><\/tr><tr><td>Decimal<\/td><td>Declare<\/td><td>Default<\/td><td>Delegate<\/td><td>Dim<\/td><td>DirectCast<\/td><td>Do<\/td><\/tr><tr><td>Double<\/td><td>Each<\/td><td>Else<\/td><td>ElseIf<\/td><td>End<\/td><td>End If<\/td><td>Enum<\/td><\/tr><tr><td>Erase<\/td><td>Error<\/td><td>Event<\/td><td>Exit<\/td><td>False<\/td><td>Finally<\/td><td>For<\/td><\/tr><tr><td>Friend<\/td><td>Function<\/td><td>Get<\/td><td>GetType<\/td><td>GetXML Namespace<\/td><td>Global<\/td><td>GoTo<\/td><\/tr><tr><td>Handles<\/td><td>If<\/td><td>Implements<\/td><td>Imports<\/td><td>In<\/td><td>Inherits<\/td><td>Integer<\/td><\/tr><tr><td>Interface<\/td><td>Is<\/td><td>IsNot<\/td><td>Let<\/td><td>Lib<\/td><td>Like<\/td><td>Long<\/td><\/tr><tr><td>Loop<\/td><td>Me<\/td><td>Mod<\/td><td>Module<\/td><td>MustInherit<\/td><td>MustOverride<\/td><td>MyBase<\/td><\/tr><tr><td>MyClass<\/td><td>Namespace<\/td><td>Narrowing<\/td><td>New<\/td><td>Next<\/td><td>Not<\/td><td>Nothing<\/td><\/tr><tr><td>Not Inheritable<\/td><td>Not Overridable<\/td><td>Object<\/td><td>Of<\/td><td>On<\/td><td>Operator<\/td><td>Option<\/td><\/tr><tr><td>Optional<\/td><td>Or<\/td><td>OrElse<\/td><td>Overloads<\/td><td>Overridable<\/td><td>Overrides<\/td><td>ParamArray<\/td><\/tr><tr><td>Partial<\/td><td>Private<\/td><td>Property<\/td><td>Protected<\/td><td>Public<\/td><td>RaiseEvent<\/td><td>ReadOnly<\/td><\/tr><tr><td>ReDim<\/td><td>REM<\/td><td>Remove Handler<\/td><td>Resume<\/td><td>Return<\/td><td>SByte<\/td><td>Select<\/td><\/tr><tr><td>Set<\/td><td>Shadows<\/td><td>Shared<\/td><td>Short<\/td><td>Single<\/td><td>Static<\/td><td>Step<\/td><\/tr><tr><td>Stop<\/td><td>String<\/td><td>Structure<\/td><td>Sub<\/td><td>SyncLock<\/td><td>Then<\/td><td>Throw<\/td><\/tr><tr><td>To<\/td><td>True<\/td><td>Try<\/td><td>TryCast<\/td><td>TypeOf<\/td><td>UInteger<\/td><td>While<\/td><\/tr><tr><td>Widening<\/td><td>With<\/td><td>WithEvents<\/td><td>WriteOnly<\/td><td>Xor<\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\"><strong><em>List of VB.net Keywords<\/em><\/strong><\/figcaption><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.tutorialspoint.com\/vb.net\/vb.net_program_structure.htm\"><\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-summary\"><strong>Summary<\/strong><\/h2>\n\n\n\n<p>Programming in <strong>Visual Basic<\/strong> is really straightforward. Even if you are not a programmer, the majority of the code is simple to grasp.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Inline comments begin with an <strong>apostrophe<\/strong>, while <strong>XML<\/strong> comments begin with three apostrophes. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>The language is not case-sensitive.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-columns is-not-stacked-on-mobile tw-mb-0 tw-mt-0 tw-gutter-large tw-stretched-link is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"tw-mt-0 tw-mb-0\" style=\"font-size:22px;font-style:normal;font-weight:600\"><strong>PREVIOUS<\/strong><\/p>\n\n\n\n<div class=\"wp-block-cover tw-mt-0 tw-mb-0 is-style-tw-rounded-corners tw-stretched-link tw-hover-show-text tw-ratio-16-9\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-70 has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"900\" class=\"wp-block-cover__image-background wp-image-63749\" alt=\"VB NET Program Structure Example\" src=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Program-Structure-Example.png\" style=\"object-position:50% 50%\" data-object-fit=\"cover\" data-object-position=\"50% 50%\" srcset=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Program-Structure-Example.png 1460w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Program-Structure-Example-300x185.png 300w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Program-Structure-Example-1024x631.png 1024w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Program-Structure-Example-768x473.png 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-text-align-center tw-mt-0 tw-mb-0 has-base-3-color has-text-color\" style=\"font-size:30px\"><strong><a href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-program-structure-example\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-base-3-color\">Program Structure<\/mark><\/a><\/strong><\/p>\n<\/div><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<p class=\"has-text-align-right tw-mt-0 tw-mb-0\" style=\"font-size:22px;font-style:normal;font-weight:600\"><strong>NEXT <\/strong><\/p>\n\n\n\n<div class=\"wp-block-cover tw-mt-0 tw-mb-0 is-style-tw-rounded-corners tw-stretched-link tw-hover-show-text tw-ratio-16-9\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim-70 has-background-dim\"><\/span><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"900\" class=\"wp-block-cover__image-background wp-image-63994\" alt=\"VB NET Data Types with Example\" src=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Data-Types-with-Example.png\" data-object-fit=\"cover\" srcset=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Data-Types-with-Example.png 1460w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Data-Types-with-Example-300x185.png 300w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Data-Types-with-Example-1024x631.png 1024w, https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Data-Types-with-Example-768x473.png 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><div class=\"wp-block-cover__inner-container is-layout-flow wp-block-cover-is-layout-flow\">\n<p class=\"has-text-align-center tw-mt-0 tw-mb-0 has-base-3-color has-text-color\" style=\"font-size:30px\"><strong><a href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-data-type-with-example-tutorial\/\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-base-3-color\">Data Types<\/mark><\/a><\/strong><\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>VB.net Syntax Visual Basic has a very simple programming VB.net Basic Syntax. The language is not case-sensitive, and it is easy even for beginners to start coding. The VB.net programming &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"VB.net Basic Syntax\" class=\"read-more button\" href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#more-63759\" aria-label=\"Read more about VB.net Basic Syntax\">Read more<\/a><\/p>\n","protected":false},"author":1767,"featured_media":63933,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[79782,79781,79784,79783,79780,79785,79779,1568],"class_list":["post-63759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-basic-tutorial","tag-for-vb-net-syntax","tag-vb-net-syntax-2","tag-vb-net-basic-syntax","tag-vb-net-code-examples","tag-vb-net-for-syntax","tag-vb-net-program-tutorial","tag-vb-net-syntax","tag-vb-net-tutorial","resize-featured-image"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.1 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>VB.net Basic Syntax - Visual Basic Syntax (VB.net Keyword)<\/title>\n<meta name=\"description\" content=\"Learn and familiarized the VB.net Basic Syntax Example, In this VB.net tutorial you can learn the Basic Syntax of the Visual Basic .NET.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VB.net Basic Syntax\" \/>\n<meta property=\"og:description\" content=\"Learn and familiarized the VB.net Basic Syntax Example, In this VB.net tutorial you can learn the Basic Syntax of the Visual Basic .NET.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/\" \/>\n<meta property=\"og:site_name\" content=\"Itsourcecode.com\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-20T08:01:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-21T03:05:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Basic-Syntax-Tutorial.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"angel jude suarez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"angel jude suarez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/\"},\"author\":{\"name\":\"angel jude suarez\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/dafb6a91b43e60537c56e3e1d227d460\"},\"headline\":\"VB.net Basic Syntax\",\"datePublished\":\"2022-06-20T08:01:28+00:00\",\"dateModified\":\"2023-11-21T03:05:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/\"},\"wordCount\":713,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/VB-NET-Basic-Syntax-Tutorial.png\",\"keywords\":[\"for vb.net syntax\",\"vb .net syntax\",\"vb.net basic syntax\",\"vb.net code examples\",\"vb.net for syntax\",\"vb.net program tutorial\",\"vb.net syntax\",\"VB.Net tutorial\"],\"articleSection\":[\"VB.NET Tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/\",\"name\":\"VB.net Basic Syntax - Visual Basic Syntax (VB.net Keyword)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/VB-NET-Basic-Syntax-Tutorial.png\",\"datePublished\":\"2022-06-20T08:01:28+00:00\",\"dateModified\":\"2023-11-21T03:05:11+00:00\",\"description\":\"Learn and familiarized the VB.net Basic Syntax Example, In this VB.net tutorial you can learn the Basic Syntax of the Visual Basic .NET.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#primaryimage\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/VB-NET-Basic-Syntax-Tutorial.png\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/VB-NET-Basic-Syntax-Tutorial.png\",\"width\":1460,\"height\":900,\"caption\":\"VB NET Basic Syntax Tutorial\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/tutorials\\\/visual-basic-tutorial\\\/vb-net-basic-syntax\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/itsourcecode.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VB.net Basic Syntax\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#website\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/\",\"name\":\"Itsourcecode.com\",\"description\":\"Partner In Your Coding Journey!\",\"publisher\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/itsourcecode.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/ad9e0497e03b85a9ca299d935298f5dc\",\"name\":\"itsourcecode\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\",\"width\":409,\"height\":409,\"caption\":\"itsourcecode\"},\"logo\":{\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/IT-SOURCECODE_ICON-07.jpg\"},\"description\":\"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!\",\"sameAs\":[\"https:\\\/\\\/itsourcecode.com\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/#\\\/schema\\\/person\\\/dafb6a91b43e60537c56e3e1d227d460\",\"name\":\"angel jude suarez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718\",\"contentUrl\":\"https:\\\/\\\/itsourcecode.com\\\/wp-content\\\/litespeed\\\/avatar\\\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718\",\"caption\":\"angel jude suarez\"},\"description\":\"Hello programmers, I'm Angel Jude Reyes Suarez, a student and a programmer of different programming languages like Python, Java, JavaScript, PHP, C, C++, Vb.net, and MySQL. and I have also knowledge in developing system or websites from Front-End to Back-End. and also a writer of itsourcecode.com.\",\"url\":\"https:\\\/\\\/itsourcecode.com\\\/author\\\/angeljudesuarez\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"VB.net Basic Syntax - Visual Basic Syntax (VB.net Keyword)","description":"Learn and familiarized the VB.net Basic Syntax Example, In this VB.net tutorial you can learn the Basic Syntax of the Visual Basic .NET.","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:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/","og_locale":"en_US","og_type":"article","og_title":"VB.net Basic Syntax","og_description":"Learn and familiarized the VB.net Basic Syntax Example, In this VB.net tutorial you can learn the Basic Syntax of the Visual Basic .NET.","og_url":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/","og_site_name":"Itsourcecode.com","article_published_time":"2022-06-20T08:01:28+00:00","article_modified_time":"2023-11-21T03:05:11+00:00","og_image":[{"width":1460,"height":900,"url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Basic-Syntax-Tutorial.png","type":"image\/png"}],"author":"angel jude suarez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"angel jude suarez","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#article","isPartOf":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/"},"author":{"name":"angel jude suarez","@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/dafb6a91b43e60537c56e3e1d227d460"},"headline":"VB.net Basic Syntax","datePublished":"2022-06-20T08:01:28+00:00","dateModified":"2023-11-21T03:05:11+00:00","mainEntityOfPage":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/"},"wordCount":713,"commentCount":0,"publisher":{"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc"},"image":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#primaryimage"},"thumbnailUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Basic-Syntax-Tutorial.png","keywords":["for vb.net syntax","vb .net syntax","vb.net basic syntax","vb.net code examples","vb.net for syntax","vb.net program tutorial","vb.net syntax","VB.Net tutorial"],"articleSection":["VB.NET Tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/","url":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/","name":"VB.net Basic Syntax - Visual Basic Syntax (VB.net Keyword)","isPartOf":{"@id":"https:\/\/itsourcecode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#primaryimage"},"image":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#primaryimage"},"thumbnailUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Basic-Syntax-Tutorial.png","datePublished":"2022-06-20T08:01:28+00:00","dateModified":"2023-11-21T03:05:11+00:00","description":"Learn and familiarized the VB.net Basic Syntax Example, In this VB.net tutorial you can learn the Basic Syntax of the Visual Basic .NET.","breadcrumb":{"@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#primaryimage","url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Basic-Syntax-Tutorial.png","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2022\/06\/VB-NET-Basic-Syntax-Tutorial.png","width":1460,"height":900,"caption":"VB NET Basic Syntax Tutorial"},{"@type":"BreadcrumbList","@id":"https:\/\/itsourcecode.com\/tutorials\/visual-basic-tutorial\/vb-net-basic-syntax\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itsourcecode.com\/"},{"@type":"ListItem","position":2,"name":"VB.net Basic Syntax"}]},{"@type":"WebSite","@id":"https:\/\/itsourcecode.com\/#website","url":"https:\/\/itsourcecode.com\/","name":"Itsourcecode.com","description":"Partner In Your Coding Journey!","publisher":{"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itsourcecode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/ad9e0497e03b85a9ca299d935298f5dc","name":"itsourcecode","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","url":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg","width":409,"height":409,"caption":"itsourcecode"},"logo":{"@id":"https:\/\/itsourcecode.com\/wp-content\/uploads\/2021\/01\/IT-SOURCECODE_ICON-07.jpg"},"description":"Hello Itsourcecoders, welcome to itsourcecode.com. I'm Joken Villanueva, MIT a passionate Blogger, Programmer and a Hobbyist. I started Itsourcecode because I wanted to give back and Share all the learnings and knowledge I've learned in my career and I believe through this website I would be able to help and assist those newbie programmers in enhancing their skills from different programming languages. So let us all help each other by sharing our ideas!","sameAs":["https:\/\/itsourcecode.com\/"]},{"@type":"Person","@id":"https:\/\/itsourcecode.com\/#\/schema\/person\/dafb6a91b43e60537c56e3e1d227d460","name":"angel jude suarez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718","url":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718","contentUrl":"https:\/\/itsourcecode.com\/wp-content\/litespeed\/avatar\/49f87b924bdd4e5fcbc3635ed3f7af29.jpg?ver=1776429718","caption":"angel jude suarez"},"description":"Hello programmers, I'm Angel Jude Reyes Suarez, a student and a programmer of different programming languages like Python, Java, JavaScript, PHP, C, C++, Vb.net, and MySQL. and I have also knowledge in developing system or websites from Front-End to Back-End. and also a writer of itsourcecode.com.","url":"https:\/\/itsourcecode.com\/author\/angeljudesuarez\/"}]}},"_links":{"self":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/63759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/users\/1767"}],"replies":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/comments?post=63759"}],"version-history":[{"count":53,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/63759\/revisions"}],"predecessor-version":[{"id":120477,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/posts\/63759\/revisions\/120477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/media\/63933"}],"wp:attachment":[{"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/media?parent=63759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/categories?post=63759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsourcecode.com\/wp-json\/wp\/v2\/tags?post=63759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}