{"id":4467,"date":"2014-01-13T08:00:18","date_gmt":"2014-01-13T00:00:18","guid":{"rendered":"http:\/\/www.vbtutor.net\/?page_id=4467"},"modified":"2018-06-24T16:42:22","modified_gmt":"2018-06-24T08:42:22","slug":"visual-basic-2013-lesson-12-string-manipulation","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2013-lesson-12-string-manipulation\/","title":{"rendered":"Visual Basic 2013 Lesson 12: Strings Manipulation"},"content":{"rendered":"<h4 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/vb2013-lesson-11-performing-mathematical-operations\/\">[Lesson 11] <\/a>&lt;&lt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2013-tutorial\/\">[Contents]<\/a> &gt;&gt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2013-lesson-13-making-decisions-using-if-then-else\/\">[Lesson 13]<\/a><\/h4>\n<p>String manipulation means writing code to process non-numeric variables. Examples of the string are names, addresses, gender, cities, book titles, alphanumeric characters (@,#,$,%,^,&amp;,*, etc) and more. In Visual Basic 2013, a string is a single unit of data that made up of a series of characters.They include letters, digits, alphanumeric symbols and more. It is treated as the String data type and cannot be manipulated mathematically though it might consist of numbers.<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=\"3914691604\"><\/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 2013, strings can be manipulated using the &amp; sign and the + sign, both perform the string concatenation. It means combining two or more smaller strings into larger strings. For example, we can join \u201cVisual\u201d,\u201dBasic\u201d and \u201c2013\u2033 into \u201cVisual Basic 2013\u2033 using \u201cVisual\u201d&amp;\u201dBasic\u201d or \u201cVisual \u201c+\u201dBasic\u201d, as shown in the Examples below:<\/p>\n<h4><strong>Example 12.1<\/strong><\/h4>\n<pre style=\"font-size: 110%;\">Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickDim \r\n text1, text2, text3, text4 As String\r\n text1 = \u201cVisual\u201d\r\n text2 = \u201cBasic\u201d\r\n text3=\u201d2013\u2033\r\n text4 = text1 + text2+text3\r\n MsgBox (text4)\r\nEnd Sub\r\n<\/pre>\n<p>The line text4=text1+ text2 + text3 can be replaced by text4=text1 &amp; text2 &amp;text3 and 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><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=\"3914691604\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<p>The output is shown in Figure 12.1:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4475\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg\" alt=\"vb2013_figure12.1\" width=\"154\" height=\"155\" \/><\/a><strong>Figure 12.1<\/strong><\/p>\n<h4><strong>Example 12.2<\/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 text1, text3 as string\r\nDim Text2 As Integer\r\n text1 = \u201cVisual\u201d\r\n text2=22\r\n text3=text1+text2\r\n MsgBox(text3)\r\nEnd Sub\r\n<\/pre>\n<p>This code will produce an error because of data mismatch. The error message appears as follows:<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4484\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.2.jpg\" alt=\"vb2013_figure12.2\" width=\"559\" height=\"318\" \/><\/a><strong>Figure 12.2<\/strong><\/p>\n<p>However, using &amp; instead of + will be all right.<\/p>\n<pre style=\"font-size: 110%;\">Dim text1, text3 as string\r\nDim Text2 As Integer\r\ntext1 = \u201cVisual\u201d\r\ntext2=22\r\ntext3=text1 &amp; text2\r\nMsgBox(text3)\r\n<\/pre>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4486\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.3.jpg\" alt=\"vb2013_figure12.3\" width=\"154\" 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>12.2 String Manipulation Using VB2013 Built-in Functions<\/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 2013.<\/p>\n<h4>12.2 (a) The Len Function<\/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<\/p>\n<pre style=\"font-size: 110%;\">Len (\u201cPhrase\u201d)<\/pre>\n<p>For example,<\/p>\n<pre style=\"font-size: 110%;\">Len (Visual Basic) = 12 and Len (\u201cwelcome to VB tutorial\u201d) = 22\r\n<\/pre>\n<h4><strong>Example 12.3<\/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 MyText as String\r\n MyText=\"Visual Basic 2013\"\r\n MsgBox(Len(MyText))\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>12.2(b) The Right Function<\/h4>\n<p>The Right function extracts the right portion of a phrase. The syntax for Visual Basic 6 is<\/p>\n<pre style=\"font-size: 110%;\">Right (\u201cPhrase\u201d, n)<\/pre>\n<p>Where n is the starting position from the right of the phase where the portion of the phrase is going to be extracted. For example,<\/p>\n<pre style=\"font-size: 110%;\">Right(\u201cVisual Basic\u201d, 4) = asic\r\n<\/pre>\n<p>However, this syntax is not applicable in Visual Basic 2013. In VB2013, we need to use the following syntax<\/p>\n<pre style=\"font-size: 110%;\">Microsoft.VisualBasic.Right(\u201cPhrase\u201d,n)<\/pre>\n<p>The reason of using the full reference is because many objects have the Right properties so using Right on its own will make it ambiguous to Visual Basic 2013.<\/p>\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 MyText As String\r\n MyText=\"Visual Basic\"\r\n MsgBox(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<pre style=\"font-size: 110%;\">Microsoft.VisualBasic.Left(\u201cPhrase\u201d,n)<\/pre>\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<pre style=\"font-size: 110%;\">Microsoft.VisualBasic.Left (\u201cVisual Basic\u201d, 4) = Visu .\r\n<\/pre>\n<h4>12.2 (d) The Mid Function<\/h4>\n<p>The Mid function is used to retrieve a part of the text from a given phrase. The syntax of the Mid Function is<\/p>\n<pre style=\"font-size: 110%;\">Mid(phrase, position,n)<\/pre>\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<p><strong>Example 12.5:<\/strong><\/p>\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\n myPhrase = InputBox(\"Enter your phrase\")\r\n LblPhrase.Text = myPhrase\r\n LblExtract.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\/2014\/01\/vb2013_figure12.6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4671\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.6.jpg\" alt=\"vb2013_figure12.6\" width=\"321\" height=\"300\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 12.6<\/strong><\/p>\n<h4>12.2(e) The Trim Function<\/h4>\n<p>The Trim function trims the empty spaces on both sides of the phrase. The syntax is<\/p>\n<pre style=\"font-size: 110%;\">Trim(\u201cPhrase\u201d)<\/pre>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\">Trim (\u201d Visual Basic \u201c) = Visual basic<\/pre>\n<p>Example 13.4<\/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\nDim myPhrase As String\r\n myPhrase = InputBox(\u201cEnter your phrase\u201d)\r\n Label1.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<pre style=\"font-size: 110%;\">Ltrim(\u201cPhrase\u201d)<\/pre>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\">Ltrim (\"\u00a0 \u00a0 Visual Basic 2013\")= Visual basic 2013\r\n<\/pre>\n<h4><strong>12.2(g)The Rtrim Function<\/strong><\/h4>\n<p>The Rtrim function trims the empty spaces of the right portion of the phrase. The syntax is<\/p>\n<pre style=\"font-size: 110%;\">Rtrim(\u201cPhrase\u201d)<\/pre>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\">Rtrim (\u201cVisual Basic 2013 \u00a0 \u00a0 \u201c) = Visual Basic 2013<\/pre>\n<h4>12.2(h) The InStr function<\/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<pre style=\"font-size: 110%;\">Instr (n, original phase, embedded phrase)<\/pre>\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 2013 \u201c,\u201dBasic\u201d)=8<\/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 Label1.Text = InStr(1, \u201cVisual Basic\u201d, \u201cBasic\u201d)\r\nEnd Sub\r\n<\/pre>\n<h4>12.2(i) The Ucase and the Lcase Functions<\/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<pre style=\"font-size: 110%;\">Microsoft.VisualBasic.UCase(Phrase)\r\n\r\nMicrosoft.VisualBasic.LCase(Phrase)\r\n<\/pre>\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>12.2(j)The Chr and the Asc functions<\/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 format 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<p>* We shall learn more about functions in later lessons<br \/>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block;\" data-ad-format=\"autorelaxed\" data-ad-client=\"ca-pub-3033628290023372\" data-ad-slot=\"2306771905\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4 style=\"text-align: center;\"><a href=\"http:\/\/www.vbtutor.net\/index.php\/vb2013-lesson-11-performing-mathematical-operations\/\">[Lesson 11]\u00a0<\/a>&lt;&lt;\u00a0<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2013-tutorial\/\">[Contents]<\/a>\u00a0&gt;&gt; <a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2013-lesson-13-making-decisions-using-if-then-else\/\">[Lesson 13]<\/a><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 11] &lt;&lt; [Contents] &gt;&gt; [Lesson 13] String manipulation means writing code to process non-numeric variables. Examples of the string are names, addresses, gender, cities, book titles, alphanumeric characters (@,#,$,%,^,&amp;,*, etc) and more. In Visual Basic 2013, a string is a single unit of data that made up of a series of characters.They include letters, &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2013-lesson-12-string-manipulation\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2013 Lesson 12: Strings Manipulation<\/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-4467","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 2013 Lesson 12: Strings Manipulation - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"This lesson explains the concepts of string and how to manipulate strings in visual basic 2013\" \/>\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\/vb2013\/vb2013_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 2013 Lesson 12: Strings Manipulation - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"This lesson explains the concepts of string and how to manipulate strings in visual basic 2013\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_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-24T08:42:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.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-2013-lesson-12-string-manipulation\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html\",\"name\":\"Visual Basic 2013 Lesson 12: Strings Manipulation - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg\",\"datePublished\":\"2014-01-13T00:00:18+00:00\",\"dateModified\":\"2018-06-24T08:42:22+00:00\",\"description\":\"This lesson explains the concepts of string and how to manipulate strings in visual basic 2013\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg\",\"width\":154,\"height\":155},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2013 Lesson 12: Strings Manipulation\"}]},{\"@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 2013 Lesson 12: Strings Manipulation - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"This lesson explains the concepts of string and how to manipulate strings in visual basic 2013","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\/vb2013\/vb2013_lesson12.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2013 Lesson 12: Strings Manipulation - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"This lesson explains the concepts of string and how to manipulate strings in visual basic 2013","og_url":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_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-24T08:42:22+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.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-2013-lesson-12-string-manipulation\/","url":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html","name":"Visual Basic 2013 Lesson 12: Strings Manipulation - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg","datePublished":"2014-01-13T00:00:18+00:00","dateModified":"2018-06-24T08:42:22+00:00","description":"This lesson explains the concepts of string and how to manipulate strings in visual basic 2013","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#primaryimage","url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg","contentUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure12.1.jpg","width":154,"height":155},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2013\/vb2013_lesson12.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2013 Lesson 12: Strings Manipulation"}]},{"@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\/4467","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=4467"}],"version-history":[{"count":76,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/4467\/revisions"}],"predecessor-version":[{"id":13067,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/4467\/revisions\/13067"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=4467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=4467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=4467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}