{"id":6055,"date":"2015-03-31T11:39:57","date_gmt":"2015-03-31T03:39:57","guid":{"rendered":"http:\/\/www.vbtutor.net\/?page_id=6055"},"modified":"2018-06-22T17:52:36","modified_gmt":"2018-06-22T09:52:36","slug":"visual-basic-2015-lesson-12-working-string","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-12-working-string\/","title":{"rendered":"Visual Basic 2015 Lesson 12: Working with Strings"},"content":{"rendered":"<h3 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-11-performing-arithmetic-operations\/\">[Lesson 11] <\/a>&lt;&lt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-tutorial\/\">[Contents]<\/a> &gt;&gt; <a title=\"visual basic 2015 tutorial lesson 13\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-13-using-else\/\">[Lesson 13]<\/a><\/h3>\n<p>In Visual Basic 2015, a string is a single unit of data that made up of a series of characters that includes letters, digits, alphanumeric symbols(@,#,$,%,^,&amp;,*, etc) and more. It is treated as the String data type and therefore it is non-numeric in nature, though it might consist of numbers. Everyday life examples of strings are names, addresses, gender, cities, book titles, phone numbers, email addresses and more.In Visual Basic 2015, you can manipulate strings by writing code to process characters like sentences, words, text , \u201d ,alphanumeric characters and more. Strings manipulation is best illustrated\u00a0in the area of word processing that deals with text editing.<br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3>12.1 String Manipulation Using + and &amp; signs<\/h3>\n<p>In Visual Basic 2015, \u00a0you can manipulate strings using the &amp; sign and the + sign, both perform the string concatenation which means combining two or more smaller strings into larger strings. For example, we can join \u201cVis\u201d,\u201dBasic\u201d and \u201c2015\u2033 into \u201cVisual Basic 2015\u2033 using \u201cVisual\u201d&amp;\u201dBasic\u201d or \u201cVisual \u201c+\u201dBasic\u201d, as shown in the Examples below:<\/p>\n<h4>Example 12.1<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load\r\n\r\nDim str1 = \"Visual \", str2 = \"Basic \", str3 = \"2015\", str As String\r\nstr = str1 + str2 + str3\r\nMsgBox(str)\r\n\r\nEnd Sub\r\n<\/pre>\n<p>The line str = str1 + str2 + str3\u00a0can be replaced by str = str1 &amp; str2 &amp; str3\u00a0and produces the same output. However, if one of the variables is declared as numeric data type, you cannot use the + sign, you can only use the &amp; sign.<\/p>\n<p>The output is shown in Figure 12.1:<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6069\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg\" alt=\"vb2015_fig12.1\" width=\"154\" height=\"155\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg 154w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1-150x150.jpg 150w\" sizes=\"auto, (max-width: 154px) 100vw, 154px\" \/><\/a>Figure 12.1<\/strong><\/p>\n<h4>Example 12.2<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.LoadDim str1 = \"Visual \", str2 = \"Basic \", str3 = \"2015\", str As String\r\nDim str4 As Integer\r\nstr4 = 100\r\nstr = str1 + str2 + str3 + str4\r\nMsgBox(str)\r\n\r\nEnd Sub\r\n<\/pre>\n<p>This code will produce an error because of data mismatch. The error message appears as shown in Figure 12.2.<\/p>\n<p style=\"text-align: center;\"><strong><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6070\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.2.jpg\" alt=\"vb2015_fig12.2\" width=\"789\" height=\"412\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.2.jpg 789w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.2-300x157.jpg 300w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.2-624x326.jpg 624w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/a>Figure 12.2<\/strong><\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><br \/>\nHowever, using &amp; instead of + will fix the error as the integer will be treated as a string. The output is as follows:<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6071\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.3.jpg\" alt=\"vb2015_fig12.3\" width=\"172\" height=\"155\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><span style=\"line-height: 1.714285714; font-size: 1rem;\"><strong>Figure 12.3<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>12.2 String Manipulation Using Visual Basic 2015 Built-in Functions<\/strong><\/h3>\n<p>A function is similar to a normal procedure but the main purpose of the function is to accept a certain input and return a value which is passed on to the main program to finish the execution.There are numerous string manipulation functions that are built into Visual Basic 2015.<\/p>\n<h4><strong>12.2 (a) The Len Function<\/strong><\/h4>\n<p>The Len function returns an integer value which is the length of a phrase or a sentence, including the empty spaces. The syntax is<br \/>\n<strong>Len (\u201cPhrase\u201d)<\/strong><\/p>\n<p>For example,<\/p>\n<pre style=\"font-size: 110%;\">Len (Visual Basic 2015) = 17 and Len (\u201cwelcome to VB 2015 tutorial\u201d) = 27\r\n<\/pre>\n<h4>Example 12.3<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\n\r\nDim MyText as String\r\nMyText=\"Visual Basic 2015\"\r\nMsgBox(Len(MyText))\r\n\r\nEnd Sub\r\n<\/pre>\n<p>The output:<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4489\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.4.jpg\" alt=\"vb2013_figure12.4\" width=\"154\" height=\"155\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>\u00a0Figure 12.4<\/strong><\/p>\n<h4><strong>12.2(b) The Right Function<\/strong><\/h4>\n<p>The Right function extracts the right portion of a phrase. The syntax \u00a0is<\/p>\n<p><strong>Microsoft.VisualBasic.Right(\u201cPhrase\u201d,n)<\/strong><\/p>\n<h4>Example 12.4<\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\nDim MyText As String\r\nMyText=\"Visual Basic\"\r\nMsgBox(Microsoft.VisualBasic.Right(MyText, 4))\r\nEnd Sub\r\n<\/pre>\n<p>The above program returns four rightmost characters of the phrase entered into the textbox.<\/p>\n<p>The Output:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4493\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.5.jpg\" alt=\"vb2013_figure12.5\" width=\"154\" height=\"155\" \/><\/a><strong>Figure 12.5<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h4>12.2(c)The Left Function<\/h4>\n<p>The Left function extracts the left portion of a phrase. The syntax \u00a0is<\/p>\n<p><strong>Microsoft.VisualBasic.Left(\u201cPhrase\u201d,n)<\/strong><\/p>\n<p>Where n is the starting position from the left of the phase where the portion of the phrase is will be extracted. For example,<\/p>\n<p>Microsoft.VisualBasic.Left (\u201cVisual Basic\u201d, 4) = Visu .<\/p>\n<h4>12.2 (d) The Mid Function<\/h4>\n<p>The Mid function is used to retrieve a part of text from a given phrase. The syntax of the Mid Function is<\/p>\n<p><strong>Mid(phrase, position,n)<\/strong><\/p>\n<p>where<\/p>\n<p>phrase is the string from which a part of the text is to be retrieved.<\/p>\n<p>position is the starting position of the phrase from which the retrieving process begins.<\/p>\n<p>n is the number of characters to retrieve.<\/p>\n<h4><strong>Example 12.5<\/strong><\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click\r\nDim myPhrase As String\r\nmyPhrase = InputBox(\"Enter your phrase\")\r\nLblPhrase.Text = myPhrase\r\nLblExtract.Text = Mid(myPhrase, 2, 6)\r\nEnd Sub\r\n<\/pre>\n<p>* In this example, when the user clicks the button, an input box will pop up prompting the user to enter a phrase. After a phrase is entered and the OK button is pressed, the label will show the extracted text starting from position 2 of the phrase and the number of characters extracted is 6.<\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.41.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6073\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.41.jpg\" alt=\"vb2015_fig12.4\" width=\"351\" height=\"300\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.41.jpg 351w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.41-300x256.jpg 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 12.6<\/strong><\/p>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3>12.2(e) The Trim Function<\/h3>\n<p>The Trim function trims the empty spaces on both sides of the phrase. The syntax is<\/p>\n<p><strong>Trim(\u201cPhrase\u201d)<\/strong><\/p>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\"> Trim (\u201d Visual Basic \u201c) = Visual basic<\/pre>\n<h4><strong>Example 12.4<\/strong><\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\nDim myPhrase As String\r\nmyPhrase = InputBox(\u201cEnter your phrase\u201d)\r\nLabel1.Text = Trim(myPhrase)\r\nEnd Sub\r\n<\/pre>\n<h4>12.2(f) The Ltrim Function<\/h4>\n<p>The Ltrim function trims the empty spaces of the left portion of the phrase. The syntax is<\/p>\n<p><strong>Ltrim(\u201cPhrase\u201d)<\/strong><\/p>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\">Ltrim (\u201d \u00a0 \u00a0 Visual Basic 2015\u2033)= Visual basic 2015\r\n<\/pre>\n<h4>12.2(g)The Rtrim Function<\/h4>\n<p>The Rtrim function trims the empty spaces of the right portion of the phrase. The syntax is<\/p>\n<p><strong>Rtrim(\u201cPhrase\u201d)<\/strong><\/p>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\">Rtrim (\u201cVisual Basic 2015 \u00a0 \u00a0 \u201c) = Visual Basic 2015\r\n<\/pre>\n<h4><strong>12.2(h) The InStr function<\/strong><\/h4>\n<p>The InStr function looks for a phrase that is embedded within the original phrase and returns the starting position of the embedded phrase. The syntax \u00a0is<\/p>\n<p><strong>Instr (n, original phase, embedded phrase)<\/strong><\/p>\n<p>Where n is the position where the Instr function will begin to look for the embedded phrase. For example<\/p>\n<pre style=\"font-size: 110%;\">Instr(1, \u201cVisual Basic 2015 \u201c,\u201dBasic\u201d)=8\r\n<\/pre>\n<p>*The function returns a numeric value.<\/p>\n<p>You can write a program code as shown below:<\/p>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r\n\r\nLabel1.Text = InStr(1, \u201cVisual Basic\u201d, \u201cBasic\u201d)\r\nEnd Sub\r\n<\/pre>\n<p><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"4768455349\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4><strong>12.2(i) The Ucase and the Lcase Functions<\/strong><\/h4>\n<p>The Ucase function converts all the characters of a string to capital letters. On the other hand, the Lcase function converts all the characters of a string to small letters.<\/p>\n<p>The syntaxes \u00a0are<\/p>\n<p><strong>Microsoft.VisualBasic.UCase(Phrase)<\/strong><\/p>\n<p><strong>Microsoft.VisualBasic.LCase(Phrase)<\/strong><\/p>\n<p>For example,<\/p>\n<pre style=\"font-size: 110%;\">Microsoft.VisualBasic.Ucase(\u201cVisual Basic\u201d) =VISUAL BASIC\r\n\r\nMicrosoft.VisualBasic.Lcase(\u201cVisual Basic\u201d) =visual basic\r\n<\/pre>\n<h4><strong>12.2(j)The Chr and the Asc functions<\/strong><\/h4>\n<p>The Chr function returns the string that corresponds to an ASCII code while the Asc function converts an ASCII character or symbol to the corresponding ASCII code. ASCII stands for \u201cAmerican Standard Code for Information Interchange\u201d. Altogether there are 255 ASCII codes and as many ASCII characters. Some of the characters may not be displayed as they may represent some actions such as the pressing of a key or produce a beep sound. The syntax of the Chr function is<\/p>\n<pre style=\"font-size: 110%;\">Chr(charcode)\r\n<\/pre>\n<p>and the syntax of the Asc function is<\/p>\n<pre style=\"font-size: 110%;\">Asc(Character)\r\n<\/pre>\n<p>The following are some examples:<\/p>\n<pre style=\"font-size: 110%;\">Chr(65)=A, Chr(122)=z, Chr(37)=% ,\r\n\r\nAsc(\u201cB\u201d)=66, Asc(\u201c&amp;\u201d)=38\r\n<\/pre>\n<div><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<!-- vb2015 tutorial matched content --><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block;\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"5090773108\" data-ad-format=\"autorelaxed\"><\/ins><br \/>\n<script>\n(adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n<h4 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-11-performing-arithmetic-operations\/\">[Lesson 11] <\/a>&lt;&lt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-tutorial\/\">[Contents]<\/a> &gt;&gt; <a title=\"visual basic 2015 tutorial lesson 13\" href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-13-using-else\/\">[Lesson 13]<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 11] &lt;&lt; [Contents] &gt;&gt; [Lesson 13] In Visual Basic 2015, a string is a single unit of data that made up of a series of characters that includes letters, digits, alphanumeric symbols(@,#,$,%,^,&amp;,*, etc) and more. It is treated as the String data type and therefore it is non-numeric in nature, though it might consist &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-12-working-string\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2015 Lesson 12: Working with Strings<\/span><\/a><\/p>\n","protected":false},"author":23013,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-6055","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Visual Basic 2015 Lesson 12: Working with Strings - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"This article discuss how to manipulate strings in visual basic 2015\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visual Basic 2015 Lesson 12: Working with Strings - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"This article discuss how to manipulate strings in visual basic 2015\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html\" \/>\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:modified_time\" content=\"2018-06-22T09:52:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@liewvk\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-12-working-string\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html\",\"name\":\"Visual Basic 2015 Lesson 12: Working with Strings - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg\",\"datePublished\":\"2015-03-31T03:39:57+00:00\",\"dateModified\":\"2018-06-22T09:52:36+00:00\",\"description\":\"This article discuss how to manipulate strings in visual basic 2015\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg\",\"width\":154,\"height\":155},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2015 Lesson 12: Working with Strings\"}]},{\"@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\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Visual Basic 2015 Lesson 12: Working with Strings - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"This article discuss how to manipulate strings in visual basic 2015","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":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2015 Lesson 12: Working with Strings - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"This article discuss how to manipulate strings in visual basic 2015","og_url":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html","og_site_name":"Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","article_publisher":"https:\/\/www.facebook.com\/Vbtutor","article_modified_time":"2018-06-22T09:52:36+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@liewvk","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2015-lesson-12-working-string\/","url":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html","name":"Visual Basic 2015 Lesson 12: Working with Strings - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg","datePublished":"2015-03-31T03:39:57+00:00","dateModified":"2018-06-22T09:52:36+00:00","description":"This article discuss how to manipulate strings in visual basic 2015","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#primaryimage","url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg","contentUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2015\/03\/vb2015_fig12.1.jpg","width":154,"height":155},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2015\/vb2015_lesson12.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2015 Lesson 12: Working with Strings"}]},{"@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"}]}},"_links":{"self":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/6055","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"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=6055"}],"version-history":[{"count":56,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/6055\/revisions"}],"predecessor-version":[{"id":13027,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/6055\/revisions\/13027"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=6055"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=6055"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=6055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}