{"id":1091,"date":"2012-04-06T16:42:18","date_gmt":"2012-04-06T08:42:18","guid":{"rendered":"http:\/\/www.vbtutor.net\/index.php\/"},"modified":"2018-06-24T19:06:47","modified_gmt":"2018-06-24T11:06:47","slug":"visual-basic-2010-lesson-12","status":"publish","type":"page","link":"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-12\/","title":{"rendered":"Visual Basic 2010 Lesson 12- Introduction to Functions"},"content":{"rendered":"<h4 style=\"text-align: center;\"><strong><a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-11\/\">[Lesson 11]<\/a> <\/strong>&lt;&lt; <strong> <a href=\"..\/..\/index.php\/visual-basic-2010-tutorial\/\">[CONTENTS]<\/a> &gt;&gt;<a href=\"http:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-13\/\"> [Lesson 13]<\/a> <\/strong><\/h4>\n<p>A Visual Basic 2010 function is a type of procedure that returns a value which is passed on to the main procedure to finish the execution. A function is similar to a sub procedure but there is one major difference, a function returns a value whilst a sub procedure does not.<\/p>\n<p>In Visual Basic 2010, there are two types of functions, the built-in functions and the functions created by the programmers. Functions created by the programmer are also known as user-defined functions. In this lesson, we shall learn how to create the user-defined function.<\/p>\n<p align=\"center\"><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>12.1 Creating User-Defined Functions<\/h3>\n<p>To create a user- defined function in Visual Basic 2010, you can use the following syntaxes:<\/p>\n<p><strong>Public Function functionName (Argument As dataType,&#8230;&#8230;&#8230;.) As dataType<\/strong><br \/>\nor<br \/>\n<strong>Private Function functionName (Argument As dataType,&#8230;&#8230;&#8230;.) As dataType<\/strong><\/p>\n<p>The keyword Public indicates that the function is applicable to the whole project and the keyword Private indicates that the function is only applicable to a certain module or procedure. The argument is a parameter that can pass a value back to the function.There is no limit to the number of arguments you can put in.<\/p>\n<h4>Example 12.1: BMI Calculator<\/h4>\n<p>This BMI calculator is a Visual Basic 2010 program that can calculate the body mass index of a person based on his or her body weight in kilogram and the body height in meter. BMI can be calculated using the formula weight\/( height )<sup>2<\/sup>, where weight is measured in kg and height in meter.<\/p>\n<p>If the \u00a0BMI is more than 30, a person is considered obese. You can refer to the following range of BMI values for your weight status.<\/p>\n<ul>\n<li>Underweight = &lt;18.5<\/li>\n<li>Normal weight = 18.5-24.9<\/li>\n<li>Overweight = 25-29.9<\/li>\n<li>Obesity = BMI of 30 or greater<\/li>\n<\/ul>\n<p><strong>The Code<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Public Class Form1\r\n\r\nPrivate Function BMI(Height As Single, weight As Single) As Double\r\nBMI = weight \/ Height ^ 2\r\nEnd Function\r\n\r\nPrivate Sub BtnCal_Click(sender As Object, e As EventArgs) Handles BtnCal.Click\r\n\r\nDim h As Single, w As Single\r\nh = Val(TextBox1.Text)\r\nw = Val(TextBox2.Text)\r\nLblBMI.Text = BMI(h, w)\r\nEnd Sub\r\nEnd Class\r\n<\/pre>\n<h4>The output<\/h4>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" class=\"aligncenter size-full wp-image-4635\" style=\"width: auto; max-width: 100%; height: auto;\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg\" alt=\"vb2013_figure17.1\" \/><\/a><\/p>\n<p align=\"center\"><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<p style=\"text-align: left;\"><strong>Figure 12.1\u00a0<\/strong><\/p>\n<h4>Example 12.2: Future Value Calculator<\/h4>\n<p>The concept of future value is related to time value of money. If you deposit your money in a bank as a savings account or a fixed deposit account for a certain period of time, you will earn a certain amount of money based on the compound interest computed periodically, and this amount is added to the principal if you continue to keep the money in the bank. Interest for the following period is computed based on the initial principal plus the interest,\u00a0this amount becomes the new principal. Subsequent interests are computed in the same manner.<\/p>\n<p>For example, let&#8217;s say you deposit $1000 in a bank and the bank is paying you 5% compound interest annually. After the first year, you will earn an interest of $1000&#215;0.05=$50. The\u00a0new principal will be $1000+$1000&#215;0.05=$1000(1+0.05)=$1000(1.05)=$1050.\u00a0After the second year, the\u00a0new principal is $1000(1.05)x1.05=$1000(1.05)2 =$1102.50. This new principal is called the future value.<\/p>\n<p>Following the above calculation, the future value after n years will be<\/p>\n<pre style=\"font-size: 110%;\">FV = PV * (1 + i \/ 100)<sup>n<\/sup><\/pre>\n<p>Where PV represents the present value, FV represents the future value, i is the interest rate and n is the number of periods (Normally months or years).<\/p>\n<p><strong>\u00a0The Code<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Public Class Form1\r\nPrivate Function FV(pv As Single, i As Single, n As Integer) As Double\r\nFV = pv * (1 + i \/ 100) ^ n\r\nEnd Function\r\n\r\nPrivate Sub BtnCal_Click(sender As Object, e As EventArgs) Handles BtnCal.Click\r\n\r\nDim FutureVal As Single\r\nDim PresentVal As Single\r\nDim interest As Single\r\nDim period As Integer\r\nPresentVal = TxtPV.Text\r\n\r\ninterest = TxtInt.Text\r\nperiod = TxtN.Text\r\n\r\nFutureVal = FV(PresentVal, interest, period)\r\nLblFV.Text = Format(FutureVal, \"$#,##0.00\")\r\nEnd Sub\r\nEnd Class\r\n<\/pre>\n<p><strong>The Output<\/strong><\/p>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"315\" height=\"311\" class=\"aligncenter size-full wp-image-4642\" style=\"width: auto; max-width: 100%; height: auto;\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.2.jpg\" alt=\"vb2013_figure17.2\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><strong>\u00a0Figure 12.2<\/strong><\/p>\n<p align=\"center\"><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>12.2 Passing Arguments by Value and by Reference<\/h4>\n<p>Functions can be called by value or called by reference. \u00a0By default, the arguments in the function are passed by reference. If arguments are passed by reference, original data will be modified and no longer preserved. On the one hand, if arguments are passed by value, original data will be preserved. The keyword to pass arguments by reference is <strong>ByRef<\/strong> and the keyword to pass arguments by value is <strong>ByVal.<\/strong><\/p>\n<p>For example,<\/p>\n<pre>Private Function FV(ByVal pv As Single, ByRef i As Single, n As Integer) As Double<\/pre>\n<p>The function FV receives pv by value, i by reference and n by reference. Notice that although ByRef is not used to pass n, by default it is passed by reference.<\/p>\n<p align=\"center\"><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<h5>Example 12.2(a)<\/h5>\n<p>In this example, we created two functions that compute the square root of a number, the first uses the keyword ByRef and the second uses the keyword ByVal.<\/p>\n<p><strong>The Code<\/strong><\/p>\n<pre style=\"font-size: 110%;\">Public Class Form1\r\n\r\nPrivate Function sqroot(ByRef x As Single) As Double\r\nx = x ^ 0.5\r\nsqroot = x\r\nEnd Function\r\n\r\nPrivate Function sqroot1(ByVal y As Single) As Double\r\ny = y ^ 0.5\r\nsqroot1 = y\r\nEnd Function\r\n\r\nPrivate Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click\r\nDim u As Single\r\nu = 9\r\nMsgBox(3 * sqroot(u), , \"ByRef\")\r\nMsgBox(\"Value of u is \" &amp; u, , \"ByRef\")\r\n\r\nEnd Sub\r\n\r\nPrivate Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click\r\nDim u As Single\r\nu = 9\r\nMsgBox(3 * sqroot1(u), , \"ByVal\")\r\nMsgBox(\"Value of u is \" &amp; u, , \"ByVal\")\r\nEnd Sub\r\n\r\nEnd Class\r\n<\/pre>\n<h4>The Output<\/h4>\n<h6>Case 1: Passing argument using ByRef<\/h6>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.3.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"161\" height=\"155\" class=\"aligncenter size-full wp-image-4657\" style=\"width: auto; max-width: 100%; height: auto;\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.3.jpg\" alt=\"vb2013_figure17.3\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 12.3<\/strong><\/p>\n<p>Notice that the value of u has been changed to 3<\/p>\n<h6>Case 2: Passing argument using ByVal<\/h6>\n<p><a href=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.4.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"161\" height=\"155\" class=\"aligncenter size-full wp-image-4658\" style=\"width: auto; max-width: 100%; height: auto;\" src=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.4.jpg\" alt=\"vb2013_figure17.4\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u00a0<strong>Figure 12.4<\/strong><\/p>\n<p>Notice that the value of u remains unchanged.<\/p>\n<p><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=\"..\/..\/index.php\/visual-basic-2010-lesson-11\/\">[Lesson 11]<\/a> <\/strong>&lt;&lt; <strong> <a href=\"..\/..\/index.php\/visual-basic-2010-tutorial\/\">[CONTENTS]<\/a> &gt;&gt;<a href=\"..\/..\/index.php\/visual-basic-2010-lesson-13\/\"> [Lesson 13]<\/a> <\/strong><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>[Lesson 11] &lt;&lt; [CONTENTS] &gt;&gt; [Lesson 13] A Visual Basic 2010 function is a type of procedure that returns a value which is passed on to the main procedure to finish the execution. A function is similar to a sub procedure but there is one major difference, a function returns a value whilst a sub &hellip; <a href=\"https:\/\/www.vbtutor.net\/index.php\/visual-basic-2010-lesson-12\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Visual Basic 2010 Lesson 12- Introduction to 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-1091","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 12- Functions Part 1<\/title>\n<meta name=\"description\" content=\"This Visual Basic 2010 lesson teaches the concept of function 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_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 2010 Lesson 12- Functions Part 1\" \/>\n<meta property=\"og:description\" content=\"This Visual Basic 2010 lesson teaches the concept of function in Visual Basic 2010\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_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-24T11:06:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.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=\"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-12\/\",\"url\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html\",\"name\":\"Visual Basic 2010 Lesson 12- Functions Part 1\",\"isPartOf\":{\"@id\":\"https:\/\/www.vbtutor.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg\",\"datePublished\":\"2012-04-06T08:42:18+00:00\",\"dateModified\":\"2018-06-24T11:06:47+00:00\",\"description\":\"This Visual Basic 2010 lesson teaches the concept of function in Visual Basic 2010\",\"breadcrumb\":{\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#primaryimage\",\"url\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg\",\"contentUrl\":\"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg\",\"width\":300,\"height\":300},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vbtutor.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Visual Basic 2010 Lesson 12- Introduction to 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 12- Functions Part 1","description":"This Visual Basic 2010 lesson teaches the concept of function 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_Lesson12.html","og_locale":"en_US","og_type":"article","og_title":"Visual Basic 2010 Lesson 12- Functions Part 1","og_description":"This Visual Basic 2010 lesson teaches the concept of function in Visual Basic 2010","og_url":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_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-24T11:06:47+00:00","og_image":[{"url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg","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-12\/","url":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html","name":"Visual Basic 2010 Lesson 12- Functions Part 1","isPartOf":{"@id":"https:\/\/www.vbtutor.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#primaryimage"},"image":{"@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#primaryimage"},"thumbnailUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg","datePublished":"2012-04-06T08:42:18+00:00","dateModified":"2018-06-24T11:06:47+00:00","description":"This Visual Basic 2010 lesson teaches the concept of function in Visual Basic 2010","breadcrumb":{"@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#primaryimage","url":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg","contentUrl":"https:\/\/www.vbtutor.net\/wordpress\/wp-content\/uploads\/2014\/01\/vb2013_figure17.1.jpg","width":300,"height":300},{"@type":"BreadcrumbList","@id":"http:\/\/www.vbtutor.net\/vb2010\/vb2010_Lesson12.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vbtutor.net\/"},{"@type":"ListItem","position":2,"name":"Visual Basic 2010 Lesson 12- Introduction to 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\/1091","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=1091"}],"version-history":[{"count":62,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/1091\/revisions"}],"predecessor-version":[{"id":13133,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/pages\/1091\/revisions\/13133"}],"wp:attachment":[{"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/media?parent=1091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/categories?post=1091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vbtutor.net\/index.php\/wp-json\/wp\/v2\/tags?post=1091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}