{"id":1093,"date":"2012-04-06T16:42:36","date_gmt":"2012-04-06T08:42:36","guid":{"rendered":"http:\/\/www.vbtutor.net\/index.php\/"},"modified":"2018-06-24T19:11:50","modified_gmt":"2018-06-24T11:11:50","slug":"visual-basic-2010-lesson-13","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-13\/","title":{"rendered":"Visual Basic 2010 Lesson 13- The Built-in Functions"},"content":{"rendered":"<h4 style=\"text-align: center;\"><strong><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-12\/\">[Lesson 12]<\/a> <\/strong>&lt;&lt;\u00a0<strong><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-tutorial\/\">[CONTENTS]<\/a> &gt;&gt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-14\/\"> [Lesson 14]<\/a><\/strong><br \/>\n<strong><br \/>\n<\/strong><\/h4>\n<p>We have introduced the basic concept of functions in the previous lesson. In this lesson, we will examine the built-in functions in VB2010. As a matter of facts, we have introduced three built-in functions in Lesson 8, they are the Len function, the Left function, and the Right Function. In this lesson, you will learn additional built-in functions.<\/p>\n<h3>13.1 The Mid Function<\/h3>\n<p>The Mid function is used to retrieve a part of the text from a given phrase. The syntax is<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Mid(phrase, position,n)\r\n<\/pre>\n<p>phrase is the string from which a part of the text is to be retrieved.<br \/>\nposition is the starting position of the phrase from which the retrieving process begins.<br \/>\nn is the number of characters to retrieve.<\/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=\"1723562988\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4>Example 13.1:<\/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\n myPhrase = Microsoft.VisualBasic.InputBox(\"Enter your phrase\")\r\n Label1.Text = Mid(myPhrase, 2, 6)\r\nEnd Sub\r\n<\/pre>\n<p>* When the user clicks the command button, an input box will pop up asking the user to enter a phrase. After a phrase is entered and 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, as shown in the figures below:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif\" alt=\"Visual Basic 2010\" width=\"80%\" height=\"auto\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_2.gif\" alt=\"Visual Basic 2010\" width=\"70%\" height=\"auto\" \/><\/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=\"1723562988\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h3>13.2 The Right Function<\/h3>\n<p>The Right function extracts the right portion of a phrase. The syntax is<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Microsoft.Visualbasic.Right (\"Phrase\", n)\r\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%; width: 80%;\">Microsoft.Visualbasic.Right (\"Visual Basic\", 4) = asic\r\n<\/pre>\n<h4>Example 13.2<\/h4>\n<p>The following code extracts the right portion any phrase entered by the user.<\/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 myword As String\r\n myword = TextBox1.Text\r\n Label1.Text = Microsoft.VisualBasic.Right (myword, 4)\r\nEnd Sub\r\n<\/pre>\n<h3>13.3 The Left Function<\/h3>\n<p>The Left function extracts the left portion of a phrase. The syntax is<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Microsoft.Visualbasic.Right (\"Phrase\", n)\r\n<\/pre>\n<p>Where n is the starting position from the left of the phase where the portion of the phrase is going to be extracted. For example:<\/p>\n<p>Microsoft.Visualbasic.Left(&#8220;Visual Basic&#8221;, 4) = asic<\/p>\n<h4>Example 13.3<\/h4>\n<p>The following code extracts the left portion any phrase entered by the user.<\/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 Dim myword As String\r\n myword = TextBox1.Text\r\n Label1.Text = Microsoft.VisualBasic.Left (myword, 4)\r\nEnd Sub\r\n<\/pre>\n<h3>13.4 The Trim Function<\/h3>\n<p>The Trim function trims the empty spaces on both sides of the phrase. The format is<\/p>\n<pre style=\"font-size: 110%; width: 50%;\">Trim(\"Phrase\")\r\n<\/pre>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%;\">Trim (\"   Visual Basic 2010     \") = Visual basic 2010<\/pre>\n<h4>Example 13.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 myPhrase As String\r\n myPhrase = Microsoft.VisualBasic.InputBox(\"Enter your phrase\")\r\n Label1.Text = Trim(myPhrase)\r\nEnd Sub\r\n<\/pre>\n<h3>13.5 The Ltrim Function<\/h3>\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%; width: 50%;\">Ltrim(\"Phrase\")\r\n<\/pre>\n<p>.For example,<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Ltrim (\"    Visual Basic 2010 \")= Visual basic 2010\r\n<\/pre>\n<h3>13.6 The Rtrim Function<\/h3>\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%; width: 50%;\">Rtrim(\"Phrase\")\r\n<\/pre>\n<p>For example,<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Rtrim (\"Visual Basic      \") = Visual Basic\r\n<\/pre>\n<h3>13.7 The InStr function<\/h3>\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 is<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Instr (n, original phase, embedded phrase)\r\n<\/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%; width: 80%;\">Instr(1, \"Visual Basic 2010 \",\"Basic\")=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 Label1.Text = InStr(1, \"Visual Basic 2010\", \"Basic\")\r\nEnd Sub\r\n<\/pre>\n<h3>13.8 The Ucase and the Lcase Functions<\/h3>\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 syntax is<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">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(\"Visual Basic 2010\") =VISUAL BASIC 2010\r\n\r\nMicrosoft.VisualBasic.Lcase(\"Visual Basic 2010\") =visual basic 2010\r\n<\/pre>\n<h3>13.9 The Chr and the Asc functions<\/h3>\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 &#8220;American Standard Code for Information Interchange&#8221;. 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%; width: 50%;\">Chr(charcode)\r\n<\/pre>\n<p>and the syntax of the Asc function is<\/p>\n<pre style=\"font-size: 110%; width: 50%;\">Asc(Character)\r\n<\/pre>\n<p>The following are some examples:<\/p>\n<pre style=\"font-size: 110%; width: 80%;\">Chr(65)=A, Chr(122)=z, Chr(37)=% \r\nAsc(\"B\")=66, Asc(\"&amp;\")=38\r\n<\/pre>\n<h3>13.10 MsgBox ( ) Function<\/h3>\n<p>The objective of MsgBox is to produce a pop-up message box and prompts the user to click on a command button before he or she can continues. This syntax is as follows:<\/p>\n<pre>yourMsg=MsgBox(Prompt, Style Value, Title)\r\n<\/pre>\n<p>The first argument, Prompt, will display the message in the message box. The Style Value will determine what type of command buttons appear on the message box, please refer to Table 12.1 for types of command button displayed. The Title argument will display the title of the message board.<\/p>\n<h4>Table 13.1<\/h4>\n<div style=\"overflow-x:auto;\">\n<table>\n<tbody>\n<tr>\n<th style=\"text-align:center; width:20%\">\n\tStyle Value<\/th>\n<th style=\"text-align:left; width:35%\">Named Constant<\/th>\n<th>Buttons Displayed<\/th>\n<\/tr>\n<tr\">\n<td style=\"text-align:center\">\n    0<\/td>\n<td>vbOkOnly<\/td>\n<td>Ok button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">\n    1<\/td>\n<td >vbOkCancel<\/td>\n<td >Ok and Cancel buttons<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">\n    2<\/td>\n<td >vbAbortRetryIgnore<\/td>\n<td >Abort, Retry and Ignore buttons.<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">\n   3<\/td>\n<td >vbYesNoCancel<\/td>\n<td >Yes, No and Cancel buttons<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">\n    4<\/td>\n<td >vbYesNo<\/td>\n<td>Yes and No buttons<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">\n    5<\/td>\n<td >vbRetryCancel<\/td>\n<td >Retry and Cancel buttons<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<p align=\"center\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\"\n     style=\"display:block; text-align:center;\"\n     data-ad-layout=\"in-article\"\n     data-ad-format=\"fluid\"\n     data-ad-client=\"ca-pub-3033628290023372\"\n     data-ad-slot=\"1723562988\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n<\/p>\n<p>We can use named constants in place of integers for the second argument to make the programs more readable. In fact, Visual Basic 2010 will automatically show up a list of named constants where you can select one of them.<\/p>\n<p>Examples:<\/p>\n<pre> yourMsg=MsgBox( \"Click OK to Proceed\", 1, \"Startup Menu\")\r\n<\/pre>\n<p>and<\/p>\n<pre>yourMsg=Msg(\"Click OK to Proceed\". vbOkCancel,\"Startup Menu\")<\/pre>\n<p>yourMsg is a variable that holds values that are returned by the MsgBox ( ) function. The values are determined by the type of buttons being clicked by the users. It has to be declared as Integer data type in the procedure or in the general declaration section. Table 13.2 shows the values, the corresponding named constant and buttons.<\/p>\n<h4>Table 13.2<\/h4>\n<div style=\"overflow-x:auto;\">\n<table>\n<tr>\n<th style=\"text-align:center; width:20%\">\n   Value<\/th>\n<th>Named Constant<\/th>\n<th>Button Clicked<\/th>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n   1<\/td>\n<td>vbOk<\/td>\n<td>Ok button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    2<\/td>\n<td>vbCancel><\/td>\n<td>Cancel button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    3<\/td>\n<td>vbAbort<\/td>\n<td>Abort button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    4<\/td>\n<td>vbRetry<\/td>\n<td>Retry button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    5<\/td>\n<td>vbIgnore<\/td>\n<td>Ignore button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    6<\/td>\n<td>vbYes<\/td>\n<td>Yes button<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    7<\/td>\n<td>vbNo<\/td>\n<td>No button<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>Example 13.5<\/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 testmsg As Integer\r\n testmsg = MsgBox(\"Click to test\", 1, \"Test message\")\r\n If testmsg = 1 Then\r\n  MessageBox.Show(\"You have clicked the OK button\")\r\n Else\r\n  MessageBox.Show(\"You have clicked the Cancel button\")\r\n End If\r\nEnd Sub\r\n<\/pre>\n<p>To make the message box looks more sophisticated, you can add an icon beside the message. There are four types of icons available in Visual Basic 2010 as shown in Table 13.3<\/p>\n<h4>Table 13.3<\/h3>\n<div style=\"overflow-x:auto;\">\n<table>\n<tr>\n<th style=\"text-align:center; width:20%\">\n    Value<\/th>\n<th>Named Constant<\/th>\n<th style=\"text-align:center;\">\n\tIcon<\/th>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    16<\/td>\n<td>vbCritical<\/td>\n<td style=\"text-align:center;\">\n    <img SRC=\"https:\/\/vbtutor.net\/vbcritical.jpg\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n   3<\/td>\n<td>vbQuestion<\/td>\n<td style=\"text-align:center;\">\n    <img SRC=\"https:\/\/vbtutor.net\/images\/vbquestion.jpg\" ><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    48<\/td>\n<td>vbExclamation<\/td>\n<td style=\"text-align:center;\"><img SRC=\"https:\/\/vbtutor.net\/vbexlamation.jpg\"><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;\">\n    64<\/td>\n<td>vbInformation<\/td>\n<td style=\"text-align:center;\"><img SRC=\"https:\/\/vbtutor.net\/images\/vbInformation.jpg\">\n<\/td>\n<\/tr>\n<\/table>\n<\/div>\n<h4>Example 13.6<\/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 testMsg As Integer\r\n testMsg = MsgBox(\"Click to Test\", vbYesNoCancel + vbExclamation, \"Test Message\")\r\n If testMsg = 6 Then\r\n  MessageBox.Show(\"You have clicked the yes button\")\r\n ElseIf testMsg = 7 Then\r\n  MessageBox.Show(\"You have clicked the NO button\")\r\n Else\r\n  MessageBox.Show(\"You have clicked the Cancel button\")\r\n End If\r\nEnd Sub\r\n<\/pre>\n<p>The first argument, Prompt, will display the message<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1242\" title=\"figure12.1\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2012\/04\/figure12.1.jpg\" alt=\"\" width=\"394\" height=\"179\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2012\/04\/figure12.1.jpg 394w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2012\/04\/figure12.1-300x136.jpg 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/p>\n<h3>13.11 The InputBox( ) Function<\/h3>\n<p>An InputBox( ) function will display a message box where the user can enter a value or a message in the form of text.<\/p>\n<p>The syntax to call up an Input Box is<\/p>\n<pre style=\"font-size: 110%;\">Microsoft.VisualBasic.InputBox(Prompt, Title, default_text, x-position, y-position)\r\n<\/pre>\n<h4>Example 13.7<\/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 userMsg As String\r\n userMsg = Microsoft.VisualBasic.InputBox(\"What is your message?\", \"Message Entry Form\", \"Enter your messge here\", 500, 700)\r\n If userMsg &lt;&gt; \"\" Then\r\n MessageBox.Show(userMsg)\r\n Else\r\n  MessageBox.Show(\"No Message\")\r\n End If\r\nEnd Sub\r\n<\/pre>\n<p>The input box will appear as shown in the figure below when you press the command button<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1243\" title=\"figure12.2\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2012\/04\/figure12.2.jpg\" alt=\"\" width=\"387\" height=\"166\" srcset=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2012\/04\/figure12.2.jpg 387w, https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2012\/04\/figure12.2-300x128.jpg 300w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><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=\"8075128701\"><\/ins><br \/>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/p>\n<h4 style=\"text-align: center;\"><strong><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-12\/\">[Lesson 12]<\/a> &lt;&lt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-tutorial\/\">[CONTENTS]<\/a> &gt;&gt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-14\/\"> [Lesson 14]<\/a><\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 12] &lt;&lt;\u00a0[CONTENTS] &gt;&gt; [Lesson 14] We have introduced the basic concept of functions in the previous lesson. In this lesson, we will examine the built-in functions in VB2010. As a matter of facts, we have introduced three built-in functions in Lesson 8, they are the Len function, the Left function, and the Right Function. &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-13\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2010 Lesson 13- The Built-in Functions<\/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-1093","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 2010 Lesson 13- The Built-in Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB<\/title>\n<meta name=\"description\" content=\"This Visual Basic 2010 lesson illustrates the usage of various built-in functions in Visual Basic 2010\" \/>\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\/vb2010\/vb2010_lesson13.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Visual Basic 2010 Lesson 13- The Built-in Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\" \/>\n<meta property=\"og:description\" content=\"This Visual Basic 2010 lesson illustrates the usage of various built-in functions in Visual Basic 2010\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.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-24T11:11:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif\" \/>\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=\"5 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-2010-lesson-13\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html\",\"name\":\"Visual Basic 2010 Lesson 13- The Built-in Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif\",\"datePublished\":\"2012-04-06T08:42:36+00:00\",\"dateModified\":\"2018-06-24T11:11:50+00:00\",\"description\":\"This Visual Basic 2010 lesson illustrates the usage of various built-in functions in Visual Basic 2010\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2010 Lesson 13- The Built-in Functions\"}]},{\"@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 2010 Lesson 13- The Built-in Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","description":"This Visual Basic 2010 lesson illustrates the usage of various built-in functions in Visual Basic 2010","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\/vb2010\/vb2010_lesson13.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2010 Lesson 13- The Built-in Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","og_description":"This Visual Basic 2010 lesson illustrates the usage of various built-in functions in Visual Basic 2010","og_url":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.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-24T11:11:50+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@liewvk","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-13\/","url":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html","name":"Visual Basic 2010 Lesson 13- The Built-in Functions - Learn Visual Basic Programming \u2013 VB.NET, VBA &amp; Classic VB","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif","datePublished":"2012-04-06T08:42:36+00:00","dateModified":"2018-06-24T11:11:50+00:00","description":"This Visual Basic 2010 lesson illustrates the usage of various built-in functions in Visual Basic 2010","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#primaryimage","url":"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif","contentUrl":"https:\/\/www.vbtutor.net\/vb2010\/vb2010_Image\/vb2010_13_1.gif"},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_lesson13.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2010 Lesson 13- The Built-in Functions"}]},{"@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\/1093","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=1093"}],"version-history":[{"count":74,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/1093\/revisions"}],"predecessor-version":[{"id":13135,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/1093\/revisions\/13135"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=1093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=1093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}