<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7984235346719357086</id><updated>2024-11-01T18:38:18.780+08:00</updated><category term="Condition (AND and OR)"/><category term="Listbox Manipulation"/><category term="Message and Input Box"/><category term="Simple Calculator (SUM)"/><category term="Simple Calculator (String plus Variable)"/><category term="Simple Calculator (USING CONDITION)"/><category term="Textbox String Manipulation"/><category term="Types of Loops"/><category term="Using  Event Keypress and Case Function"/><category term="Using Format Function"/><title type='text'>Learning Visual Basic 6</title><subtitle type='html'>Object - Oriented Programming 1 (Introduction to Visual Basic 6 Programming)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://siruyvisualbasic.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-6421416127366363732</id><published>2012-08-02T09:54:00.001+08:00</published><updated>2012-08-02T10:03:28.150+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Message and Input Box"/><title type='text'>Sample Program #10</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ4BFVDdr5FovP23qpcVOW8yFQEgzgwhkwlUfyzIVV1Ffv1XveZ46_Yj9oWrGSVWupflYSptPwrKmZK8IYapdwdsRiWzs3hwWhLyE9TCxzGhhV8WeQYhWxvnhgRpmkQ-iuOX3l2Q18fBE/s1600/sample10.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ4BFVDdr5FovP23qpcVOW8yFQEgzgwhkwlUfyzIVV1Ffv1XveZ46_Yj9oWrGSVWupflYSptPwrKmZK8IYapdwdsRiWzs3hwWhLyE9TCxzGhhV8WeQYhWxvnhgRpmkQ-iuOX3l2Q18fBE/s640/sample10.JPG&quot; width=&quot;640&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
Let us create a program that will post a message from txtmsg with the specified message and button style after pressing cmdpreview. When cmdmsg is pressed, an input box will appear asking you a message to be written to the txtmsg textbox. Here is the code:&lt;br /&gt;
&lt;div style=&quot;color: #274e13;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13; font-size: x-small;&quot;&gt;Private Sub cmdclose_Click()&lt;br /&gt;&amp;nbsp; If MsgBox(&quot;Are you sure you want to close the application?&quot;, vbQuestion + vbYesNo, &quot;Confirm&quot;) = vbYes Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&lt;br /&gt;&amp;nbsp; End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub cmdpreview_Click()&lt;br /&gt;&amp;nbsp; Dim ans As VbMsgBoxResult&lt;br /&gt;&amp;nbsp; ans = MsgBox(txtmsg.Text, Val(cmbmsgtype.Text) + Val(cmbbtntype.Text), &quot;Message Preview&quot;)&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; lblbtnclick.Caption = &quot;You clicked &quot;&lt;br /&gt;&amp;nbsp; If ans = vbAbort Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;Abort&quot;&lt;br /&gt;&amp;nbsp; ElseIf ans = vbCancel Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;Cancel&quot;&lt;br /&gt;&amp;nbsp; ElseIf ans = vbIgnore Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;Ignore&quot;&lt;br /&gt;&amp;nbsp; ElseIf ans = vbNo Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;No&quot;&lt;br /&gt;&amp;nbsp; ElseIf ans = vbOK Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;OK&quot;&lt;br /&gt;&amp;nbsp; ElseIf ans = vbRetry Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;Retry&quot;&lt;br /&gt;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblbtnclick.Caption = lblbtnclick.Caption &amp;amp; &quot;Yes&quot;&lt;br /&gt;&amp;nbsp; End If&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub cmdmsg_Click()&lt;br /&gt;&amp;nbsp; txtmsg.Text = InputBox(&quot;Enter your message here: &quot;, &quot;Input Box Message&quot;, txtmsg.Text)&lt;br /&gt;End Sub&lt;/span&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/6421416127366363732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/6421416127366363732'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/08/sample-program-10.html' title='Sample Program #10'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ4BFVDdr5FovP23qpcVOW8yFQEgzgwhkwlUfyzIVV1Ffv1XveZ46_Yj9oWrGSVWupflYSptPwrKmZK8IYapdwdsRiWzs3hwWhLyE9TCxzGhhV8WeQYhWxvnhgRpmkQ-iuOX3l2Q18fBE/s72-c/sample10.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-6333584087466206424</id><published>2012-08-01T15:29:00.000+08:00</published><updated>2012-08-03T10:32:57.532+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Using  Event Keypress and Case Function"/><title type='text'>Sample Program #9</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxc0hIMwP4qA37gPIY1oINXp6fz16IISZ13db6UDNh6rzAhag1_JCHL8vpF5aYtQziKcgFId9qVPFal3mWHKdUlGAAatF5XbPNnqE8lrramkY8USKkIGdlnbgqU0PiL-mhHB-v7lg14pI/s1600/sample9.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;181&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxc0hIMwP4qA37gPIY1oINXp6fz16IISZ13db6UDNh6rzAhag1_JCHL8vpF5aYtQziKcgFId9qVPFal3mWHKdUlGAAatF5XbPNnqE8lrramkY8USKkIGdlnbgqU0PiL-mhHB-v7lg14pI/s400/sample9.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Let us create a program that will capitalize every first letter of the word and lowering the case of the remaining letters after pressing the [ENTER] button. Here is the code:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;Private Sub txtw_keypress(KeyAscii As Integer)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;Dim size, pos As Integer&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp; If KeyAscii = 13 Then&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelStart = 0&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelLength = 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtc.Text = UCase(txtw.SelText)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; size = Len(txtw.Text) - 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While pos &amp;lt;= size&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelStart = pos&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelLength = 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If txtw.SelText = &quot; &quot; Then&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = pos + 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelStart = pos&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelLength = 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtc.Text = txtc.Text + &quot; &quot; + UCase(txtw.SelText)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtc.Text = txtc.Text + LCase(txtw.SelText)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = pos + 1&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtw.SelStart = Len(txtw.Text)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;&amp;nbsp; End If&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: #274e13;&quot;&gt;End Sub&lt;/span&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/6333584087466206424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/6333584087466206424'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/08/sample-program-9.html' title='Sample Program #9'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxc0hIMwP4qA37gPIY1oINXp6fz16IISZ13db6UDNh6rzAhag1_JCHL8vpF5aYtQziKcgFId9qVPFal3mWHKdUlGAAatF5XbPNnqE8lrramkY8USKkIGdlnbgqU0PiL-mhHB-v7lg14pI/s72-c/sample9.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-7568570726539077845</id><published>2012-07-19T14:59:00.003+08:00</published><updated>2012-08-01T15:18:44.310+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Listbox Manipulation"/><title type='text'>Sample Program #8</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIcGP8Suwcd0AYw3nnA6Kaq83bMw_Z2Zp87DhBLUAV4yy7mKp6mr-vu2ssB1UtldfVtIs8-1s6xVt58Osrhhu1VJ9tlJVxTP2DBO_M7swj5tZI6Os8KzOeRNRmbekpgz5p4T2tm7or-uE/s1600/listbox.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIcGP8Suwcd0AYw3nnA6Kaq83bMw_Z2Zp87DhBLUAV4yy7mKp6mr-vu2ssB1UtldfVtIs8-1s6xVt58Osrhhu1VJ9tlJVxTP2DBO_M7swj5tZI6Os8KzOeRNRmbekpgz5p4T2tm7or-uE/s400/listbox.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Let us create a program that will exhibit a passing of data between listboxes. The events of our program is to put the entered text from txtname to lstdata1 and after putting it, we will erase the string inside the textbox. No empty string will be inputted inside the lstdata1 thus we will put a condition to prevent it to happen. If &quot;To Right&quot; or &quot;To left&quot; button is pressed, the selected data from lstdata1 will be transferred to lstdata2 or vice versa. If &quot;All Right&quot; or &quot;All Left&quot; button is pressed, all data inside the listbox will be transferred to the other listbox. Here is the code:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Private Sub cmdadd_Click()&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; If Trim(txtname.Text) &amp;lt;&amp;gt; &quot;&quot; Then&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata1.AddItem txtname.Text&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; End If&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; txtname.Text = &quot;&quot;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
End Sub&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Private Sub cmdallleft_Click()&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Dim index As Integer&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; For index = 0 To lstdata2.ListCount - 1&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata1.AddItem lstdata2.List(index)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Next index&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; lstdata2.Clear&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
End Sub&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Private Sub cmdallright_Click()&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Dim index As Integer&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; For index = 0 To lstdata1.ListCount - 1&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata2.AddItem lstdata1.List(index)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; Next index&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; lstdata1.Clear&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
End Sub&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Private Sub cmdtoleft_Click()&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; If lstdata2.ListIndex &amp;lt;&amp;gt; -1 Then&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata1.AddItem lstdata2.List(lstdata2.ListIndex)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata2.RemoveItem lstdata2.ListIndex&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; End If&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
End Sub&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Private Sub cmdtoright_Click()&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; If lstdata1.ListIndex &amp;lt;&amp;gt; -1 Then&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata2.AddItem lstdata1.List(lstdata1.ListIndex)&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; lstdata1.RemoveItem lstdata1.ListIndex&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&amp;nbsp; End If&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
End Sub&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/7568570726539077845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/7568570726539077845'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-8.html' title='Sample Program #8'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIcGP8Suwcd0AYw3nnA6Kaq83bMw_Z2Zp87DhBLUAV4yy7mKp6mr-vu2ssB1UtldfVtIs8-1s6xVt58Osrhhu1VJ9tlJVxTP2DBO_M7swj5tZI6Os8KzOeRNRmbekpgz5p4T2tm7or-uE/s72-c/listbox.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-7336497380358058322</id><published>2012-07-13T15:52:00.002+08:00</published><updated>2012-07-17T15:17:54.521+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Using Format Function"/><title type='text'>Sample Program #7</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd_o1qd3lmk8npvbzxbmxB_FoKaX39hJYFcrREO2JpPzWPsLYsqPS7kmlDttfOlIXLwxX8M18py3oZNO5t_cZ1xjI0lpavWro8c5hPdu_9n1tGaCyIaENyJqDV8_msrYYehaWiA8ChsvA/s1600/sample7.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd_o1qd3lmk8npvbzxbmxB_FoKaX39hJYFcrREO2JpPzWPsLYsqPS7kmlDttfOlIXLwxX8M18py3oZNO5t_cZ1xjI0lpavWro8c5hPdu_9n1tGaCyIaENyJqDV8_msrYYehaWiA8ChsvA/s400/sample7.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us create a program that will get the average of three(3) numbers and control the decimal place of the result using the format function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Private Sub cmdave_Click()&lt;br /&gt;
&amp;nbsp; Dim a, b, c As Integer&lt;br /&gt;
&amp;nbsp; Dim d As Currency&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; a = Val(txtn1.Text)&lt;br /&gt;
&amp;nbsp; b = Val(txtn2.Text)&lt;br /&gt;
&amp;nbsp; c = Val(txtn3.Text)&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&amp;nbsp; d = (a + b + c) / 3&lt;br /&gt;
&amp;nbsp; txtave.Text = &quot;The average is &quot; + Format(Trim(Str(d)), &quot;0.00&quot;)&amp;nbsp; &lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The format string function&amp;nbsp; varies between 0 and # sign. The 0 forces the number format to display the zero even if the amount of the number does not reach the digit position while the # sign on the other hand will not. The purpose of using the # sign is to limit the number of digit to be displayed. For example, using #.## in the code above will make a display of &lt;b style=&quot;color: red;&quot;&gt;.5&lt;/b&gt; instead of &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;0.50&lt;/span&gt;&lt;/b&gt;, &lt;b style=&quot;color: red;&quot;&gt;3.&lt;/b&gt; instead of &lt;b style=&quot;color: red;&quot;&gt;3.00&lt;/b&gt; and &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1.5&lt;/span&gt;&lt;/b&gt; instead of &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1.50&lt;/span&gt;&lt;/b&gt;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/7336497380358058322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/7336497380358058322'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-7.html' title='Sample Program #7'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd_o1qd3lmk8npvbzxbmxB_FoKaX39hJYFcrREO2JpPzWPsLYsqPS7kmlDttfOlIXLwxX8M18py3oZNO5t_cZ1xjI0lpavWro8c5hPdu_9n1tGaCyIaENyJqDV8_msrYYehaWiA8ChsvA/s72-c/sample7.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-3643872453689536982</id><published>2012-07-13T15:49:00.001+08:00</published><updated>2012-07-13T15:49:29.359+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Textbox String Manipulation"/><title type='text'>Sample Program #6</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE3rTah4JwTUxGK44CtXrDxjU3AVI3CQxB7sCI6cp1HdMVgOeYGP6KKRI52NGq7QJpQXoTSqrJPXpAUY_jn4ak5KlO8b2QBQXZJI8DYccB4KHVVAkPsnJhu0gIjpbr-QOsWTF8Xj8CK9w/s1600/sample6.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE3rTah4JwTUxGK44CtXrDxjU3AVI3CQxB7sCI6cp1HdMVgOeYGP6KKRI52NGq7QJpQXoTSqrJPXpAUY_jn4ak5KlO8b2QBQXZJI8DYccB4KHVVAkPsnJhu0gIjpbr-QOsWTF8Xj8CK9w/s400/sample6.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us create a program that will get the first and last letter of an entered string combining the selstart, sellength, seltext and len() function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:WordDocument&gt;
  &lt;w:View&gt;Normal&lt;/w:View&gt;
  &lt;w:Zoom&gt;0&lt;/w:Zoom&gt;
  &lt;w:TrackMoves/&gt;
  &lt;w:TrackFormatting/&gt;
  &lt;w:PunctuationKerning/&gt;
  &lt;w:ValidateAgainstSchemas/&gt;
  &lt;w:SaveIfXMLInvalid&gt;false&lt;/w:SaveIfXMLInvalid&gt;
  &lt;w:IgnoreMixedContent&gt;false&lt;/w:IgnoreMixedContent&gt;
  &lt;w:AlwaysShowPlaceholderText&gt;false&lt;/w:AlwaysShowPlaceholderText&gt;
  &lt;w:DoNotPromoteQF/&gt;
  &lt;w:LidThemeOther&gt;EN-US&lt;/w:LidThemeOther&gt;
  &lt;w:LidThemeAsian&gt;X-NONE&lt;/w:LidThemeAsian&gt;
  &lt;w:LidThemeComplexScript&gt;X-NONE&lt;/w:LidThemeComplexScript&gt;
  &lt;w:Compatibility&gt;
   &lt;w:BreakWrappedTables/&gt;
   &lt;w:SnapToGridInCell/&gt;
   &lt;w:WrapTextWithPunct/&gt;
   &lt;w:UseAsianBreakRules/&gt;
   &lt;w:DontGrowAutofit/&gt;
   &lt;w:SplitPgBreakAndParaMark/&gt;
   &lt;w:DontVertAlignCellWithSp/&gt;
   &lt;w:DontBreakConstrainedForcedTables/&gt;
   &lt;w:DontVertAlignInTxbx/&gt;
   &lt;w:Word11KerningPairs/&gt;
   &lt;w:CachedColBalance/&gt;
  &lt;/w:Compatibility&gt;
  &lt;w:BrowserLevel&gt;MicrosoftInternetExplorer4&lt;/w:BrowserLevel&gt;
  &lt;m:mathPr&gt;
   &lt;m:mathFont m:val=&quot;Cambria Math&quot;/&gt;
   &lt;m:brkBin m:val=&quot;before&quot;/&gt;
   &lt;m:brkBinSub m:val=&quot;--&quot;/&gt;
   &lt;m:smallFrac m:val=&quot;off&quot;/&gt;
   &lt;m:dispDef/&gt;
   &lt;m:lMargin m:val=&quot;0&quot;/&gt;
   &lt;m:rMargin m:val=&quot;0&quot;/&gt;
   &lt;m:defJc m:val=&quot;centerGroup&quot;/&gt;
   &lt;m:wrapIndent m:val=&quot;1440&quot;/&gt;
   &lt;m:intLim m:val=&quot;subSup&quot;/&gt;
   &lt;m:naryLim m:val=&quot;undOvr&quot;/&gt;
  &lt;/m:mathPr&gt;&lt;/w:WordDocument&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;w:LatentStyles DefLockedState=&quot;false&quot; DefUnhideWhenUsed=&quot;true&quot;
  DefSemiHidden=&quot;true&quot; DefQFormat=&quot;false&quot; DefPriority=&quot;99&quot;
  LatentStyleCount=&quot;267&quot;&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;0&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Normal&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;heading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;9&quot; QFormat=&quot;true&quot; Name=&quot;heading 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 7&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 8&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; Name=&quot;toc 9&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;35&quot; QFormat=&quot;true&quot; Name=&quot;caption&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;10&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; Name=&quot;Default Paragraph Font&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;11&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtitle&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;22&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Strong&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;20&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;59&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Table Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Placeholder Text&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;1&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;No Spacing&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; UnhideWhenUsed=&quot;false&quot; Name=&quot;Revision&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;34&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;List Paragraph&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;29&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;30&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Quote&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 1&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 2&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 3&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 4&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 5&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;60&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;61&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;62&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Light Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;63&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;64&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Shading 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;65&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;66&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium List 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;67&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 1 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;68&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 2 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;69&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Medium Grid 3 Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;70&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Dark List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;71&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Shading Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;72&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful List Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;73&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; Name=&quot;Colorful Grid Accent 6&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;19&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;21&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Emphasis&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;31&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Subtle Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;32&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Intense Reference&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;33&quot; SemiHidden=&quot;false&quot;
   UnhideWhenUsed=&quot;false&quot; QFormat=&quot;true&quot; Name=&quot;Book Title&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;37&quot; Name=&quot;Bibliography&quot;/&gt;
  &lt;w:LsdException Locked=&quot;false&quot; Priority=&quot;39&quot; QFormat=&quot;true&quot; Name=&quot;TOC Heading&quot;/&gt;
 &lt;/w:LatentStyles&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 10]&gt;
&lt;style&gt;
 /* Style Definitions */
 table.MsoNormalTable
 {mso-style-name:&quot;Table Normal&quot;;
 mso-tstyle-rowband-size:0;
 mso-tstyle-colband-size:0;
 mso-style-noshow:yes;
 mso-style-priority:99;
 mso-style-qformat:yes;
 mso-style-parent:&quot;&quot;;
 mso-padding-alt:0in 5.4pt 0in 5.4pt;
 mso-para-margin-top:0in;
 mso-para-margin-right:0in;
 mso-para-margin-bottom:10.0pt;
 mso-para-margin-left:0in;
 line-height:115%;
 mso-pagination:widow-orphan;
 font-size:11.0pt;
 font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
 mso-ascii-font-family:Calibri;
 mso-ascii-theme-font:minor-latin;
 mso-fareast-font-family:&quot;Times New Roman&quot;;
 mso-fareast-theme-font:minor-fareast;
 mso-hansi-font-family:Calibri;
 mso-hansi-theme-font:minor-latin;}
&lt;/style&gt;
&lt;![endif]--&gt;

&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;color: #38761d;&quot;&gt;
&#39;LONG METHOD STYLE CODE&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdfind_Click()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;Dim a As Integer&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelStart = 0&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelLength =
1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txtb.Text =
&quot;The first letter is &quot; + UCase(txta.SelText)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;a =
Len(txta.Text) - 1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelStart = a&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelLength =
1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txtb.Text =
txtb.Text + &quot; and the last letter is &quot; + UCase(txta.SelText)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelStart = a
+ 1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;color: #38761d;&quot;&gt;
&#39;SHORT METHOD STYLE CODE&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdfind_Click()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelStart = 0&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelLength =
1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txtb.Text =
&quot;The first letter is &quot; + UCase(txta.SelText)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelStart =
Len(txta.Text) - 1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelLength =
1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txtb.Text =
txtb.Text + &quot; and the last letter is &quot; + UCase(txta.SelText)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;txta.SelStart =
Len(txta.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/3643872453689536982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/3643872453689536982'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-6.html' title='Sample Program #6'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjE3rTah4JwTUxGK44CtXrDxjU3AVI3CQxB7sCI6cp1HdMVgOeYGP6KKRI52NGq7QJpQXoTSqrJPXpAUY_jn4ak5KlO8b2QBQXZJI8DYccB4KHVVAkPsnJhu0gIjpbr-QOsWTF8Xj8CK9w/s72-c/sample6.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-7036788359386324034</id><published>2012-07-13T15:32:00.003+08:00</published><updated>2012-07-13T15:34:15.915+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Types of Loops"/><title type='text'>Sample Program #5</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ88cPHyTeo6hk5ObWvpwb7LXBvgM472KNE9dAqKKtVcyK_4724SzNjI-QIXPq2Gj3iIy4V3DCERjHEbXtCiRYcuZ4DNTqwEolQ2YJCJnHN00288uLh_wXXJaquupzI59xGZ6A88g4MEk/s1600/sample5.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ88cPHyTeo6hk5ObWvpwb7LXBvgM472KNE9dAqKKtVcyK_4724SzNjI-QIXPq2Gj3iIy4V3DCERjHEbXtCiRYcuZ4DNTqwEolQ2YJCJnHN00288uLh_wXXJaquupzI59xGZ6A88g4MEk/s400/sample5.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us create a program that will count base on the given start and end value using the different types of loop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;USING FOR LOOP&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdcal_Click()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Dim a, b, c As
Integer&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; a =
Val(txtn1.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; b =
Val(txtn2.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; For c = a To b&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &amp;nbsp; txtsum.Text = txtsum.Text + Trim(Str(c)) +
&quot; &quot;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Next c&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&lt;br /&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;USING DO LOOP UNTIL&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdcal_Click()&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Dim a, b, c As
Integer


&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; a =
Val(txtn1.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; b =
Val(txtn2.Text)&lt;/div&gt;
&amp;nbsp; &lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
 &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Do&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = txtsum.Text + Trim(Str(a)) +
&quot; &quot;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; a = a + 1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Loop Until (a
&amp;gt; b)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;USING DO LOOP WHILE&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdcal_Click()&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Dim a, b, c As
Integer


&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; a =
Val(txtn1.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; b =
Val(txtn2.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Do&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = txtsum.Text + Trim(Str(a)) +
&quot; &quot;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; a = a + 1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Loop While (a
&amp;lt;= b)&lt;/div&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;USING DO WHILE LOOP&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdcal_Click()&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Dim a, b, c As
Integer


&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; a =
Val(txtn1.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; b =
Val(txtn2.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Do While (a
&amp;lt;= b)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = txtsum.Text + Trim(Str(a)) +
&quot; &quot;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; a = a + 1&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Loop&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/7036788359386324034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/7036788359386324034'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-5.html' title='Sample Program #5'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ88cPHyTeo6hk5ObWvpwb7LXBvgM472KNE9dAqKKtVcyK_4724SzNjI-QIXPq2Gj3iIy4V3DCERjHEbXtCiRYcuZ4DNTqwEolQ2YJCJnHN00288uLh_wXXJaquupzI59xGZ6A88g4MEk/s72-c/sample5.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-268427149490617006</id><published>2012-07-13T15:14:00.002+08:00</published><updated>2012-07-13T15:20:40.724+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Condition (AND and OR)"/><title type='text'>Sample Program #4</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghKbVyp2P4fvFXRFG8H3Rca832xUnyHZibaiJIT2r4JANP-nmy04hqeyXh40nGgH6I6WGChDH2rXQDPoa_ryYL6rS0b7C_bubPnZ2mAQIKLB1f5k-0zRYGElFLQHNFJMkbUrWwiLuiPuk/s1600/sample4.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghKbVyp2P4fvFXRFG8H3Rca832xUnyHZibaiJIT2r4JANP-nmy04hqeyXh40nGgH6I6WGChDH2rXQDPoa_ryYL6rS0b7C_bubPnZ2mAQIKLB1f5k-0zRYGElFLQHNFJMkbUrWwiLuiPuk/s400/sample4.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us create a program that will evaluate the smallest and the largest number from the three given inputs. We will enhance our condition using the AND and OR operators. In this example, we will use only AND.&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;color: #38761d;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdcal_Click()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Dim a, b, c As
Integer&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; a =
Val(txtn1.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; b =
Val(txtn2.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; c =
Val(txtn3.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; If (a &amp;lt; b) And
(a &amp;lt; c) Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
&quot;The smallest number is &quot; + Trim(Str(a))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; ElseIf (b &amp;lt; a)
And (b &amp;lt; c) Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
&quot;The smallest number is &quot; + Trim(Str(b))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Else&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
&quot;The smallest number is &quot; + Trim(Str(c))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; End If&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; If (a &amp;gt; b) And
(a &amp;gt; c) Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(a))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; ElseIf (b &amp;gt; a)
And (b &amp;gt; c) Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(b))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Else&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(c))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; End If&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot; style=&quot;color: #38761d;&quot;&gt;
&#39;ANOTHER METHOD STYLE CODE&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
Private Sub cmdcal_Click()&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Dim a, b, c As
Integer&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; a =
Val(txtn1.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; b =
Val(txtn2.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; c =
Val(txtn3.Text)&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; &lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; If (a &amp;lt; b) And
(a &amp;lt; c) Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
&quot;The smallest number is &quot; + Trim(Str(a))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If (b &amp;gt; c)
Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(b))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(c))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; ElseIf (b &amp;lt; a)
And (b &amp;lt; c) Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
&quot;The smallest number is &quot; + Trim(Str(b))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If (a &amp;gt; c)
Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(a))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(c))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; Else&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
&quot;The smallest number is &quot; + Trim(Str(c))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; If (b &amp;gt; a)
Then&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(b))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text =
txtsum.Text + &quot; and the largest is &quot; + Trim(Str(a))&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
&amp;nbsp; End If&lt;/div&gt;
&lt;div class=&quot;MsoNoSpacing&quot;&gt;
End Sub&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/268427149490617006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/268427149490617006'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-4.html' title='Sample Program #4'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghKbVyp2P4fvFXRFG8H3Rca832xUnyHZibaiJIT2r4JANP-nmy04hqeyXh40nGgH6I6WGChDH2rXQDPoa_ryYL6rS0b7C_bubPnZ2mAQIKLB1f5k-0zRYGElFLQHNFJMkbUrWwiLuiPuk/s72-c/sample4.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-3768954598262818964</id><published>2012-07-13T11:33:00.000+08:00</published><updated>2012-07-13T11:33:42.984+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Simple Calculator (USING CONDITION)"/><title type='text'>Sample Program #3</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAP0eSWb8ekH60_d6q6lCyX95Ta8ghodB9onaEfAFCRNcItXdET1U2omSJH-cxhOXLGSjQP1_BLA870i9uNZrXrJOs9hVO2RpauOKDdjHXbV8HQsSD_s_89g9ekONQ4lxI0h9yjQKctQc/s1600/sample3.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAP0eSWb8ekH60_d6q6lCyX95Ta8ghodB9onaEfAFCRNcItXdET1U2omSJH-cxhOXLGSjQP1_BLA870i9uNZrXrJOs9hVO2RpauOKDdjHXbV8HQsSD_s_89g9ekONQ4lxI0h9yjQKctQc/s400/sample3.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us put an evaluation of the calculated sum using condition statement. The evaluations would be, &quot;greater than 10&quot;, &quot;less than 10&quot; and &quot;equal to 10&quot; enhancing Sample Program #2.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;LONG METHOD STYLE CODE&lt;/span&gt;&lt;br /&gt;Private Sub cmdcal_Click()&lt;br /&gt;&amp;nbsp; Dim a, b, c As Integer&lt;br /&gt;&lt;br /&gt;&amp;nbsp; a = Val(txtn1.Text)&lt;br /&gt;&amp;nbsp; b = Val(txtn2.Text)&lt;br /&gt;&amp;nbsp; c = a + b&lt;br /&gt;&amp;nbsp; If (c &amp;lt; 10) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = &quot;The sum is &quot; + Trim(Str(c)) + &quot; and is less than 10&quot;&lt;br /&gt;&amp;nbsp; ElseIf (c &amp;gt; 10) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = &quot;The sum is &quot; + Trim(Str(c)) + &quot; and is greater than 10&quot;&lt;br /&gt;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = &quot;The sum is &quot; + Trim(Str(c)) + &quot; and is equal to 10&quot;&lt;br /&gt;&amp;nbsp; End If&lt;br /&gt;End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;SHORT METHOD STYLE CODE&lt;/span&gt;&lt;br /&gt;Private Sub cmdcal_Click()&lt;br /&gt;&amp;nbsp; txtsum.Text = &quot;The sum is &quot; + Trim(Str(Val(txtn1.Text) + Val(txtn2.Text)))&lt;br /&gt;&amp;nbsp; If (Val(txtn1.Text) + Val(txtn2.Text) &amp;lt; 10) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = txtsum.Text + &quot; and is less than 10&quot;&lt;br /&gt;&amp;nbsp; ElseIf (Val(txtn1.Text) + Val(txtn2.Text) &amp;gt; 10) Then&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = txtsum.Text + &quot; and is greater than 10&quot;&lt;br /&gt;&amp;nbsp; Else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; txtsum.Text = txtsum.Text + &quot; and is equal to 10&quot;&lt;br /&gt;&amp;nbsp; End If&lt;br /&gt;End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
Here, the condition statement if,elseif and else are connected thus if either of the conditions is true, the computer will no longer enter to the next condition block.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/3768954598262818964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/3768954598262818964'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-3.html' title='Sample Program #3'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAP0eSWb8ekH60_d6q6lCyX95Ta8ghodB9onaEfAFCRNcItXdET1U2omSJH-cxhOXLGSjQP1_BLA870i9uNZrXrJOs9hVO2RpauOKDdjHXbV8HQsSD_s_89g9ekONQ4lxI0h9yjQKctQc/s72-c/sample3.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-8126693115799696482</id><published>2012-07-12T16:03:00.001+08:00</published><updated>2012-07-13T11:43:20.847+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Simple Calculator (String plus Variable)"/><title type='text'>Sample Program #2</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGSxEw0JfEwW9TWD-YyQvMMcJgCV7EoaEfutgvydqY9HZBTbWLVyAdxTEOSO_yKz4-f-qFO1JTnlqPwJGgelhyphenhyphen9ZnedQX4fMfxlVVRw1pnV70Lu_z0vzQPlYxfx9efLMozM0uT48eLGzI/s1600/sample2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGSxEw0JfEwW9TWD-YyQvMMcJgCV7EoaEfutgvydqY9HZBTbWLVyAdxTEOSO_yKz4-f-qFO1JTnlqPwJGgelhyphenhyphen9ZnedQX4fMfxlVVRw1pnV70Lu_z0vzQPlYxfx9efLMozM0uT48eLGzI/s400/sample2.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us create a program enhancing the result from Sample Program #1. Aside of stating only the sum, combine the statement &quot;The sum is&quot; to make a human like calculator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;LONG METHOD STYLE CODE&lt;/span&gt;&lt;br /&gt;
Private Sub cmdcal_Click()&lt;br /&gt;
&amp;nbsp; Dim a, b, c As Integer&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; a = Val(txtn1.Text)&lt;br /&gt;
&amp;nbsp; b = Val(txtn2.Text)&lt;br /&gt;
&amp;nbsp; c = a + b&lt;br /&gt;
&amp;nbsp; txtsum.Text = &quot;The sum is &quot; + Trim(Str(c))&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;SHORT METHOD STYLE CODE&lt;/span&gt;&lt;br /&gt;
Private Sub cmdcal_Click()&lt;br /&gt;
&amp;nbsp; txtsum.Text = &quot;The sum is &quot; + Trim(Str(Val(txtn1.Text) + Val(txtn2.Text)))&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
Basing on the previous example, we simply add the statement (THE SUM IS) which is inside a double quotation mark. The double quotation mark will tell the compiler that this statement does not contain any variable. To fuse it with a variable, just add a plus sign in between.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/8126693115799696482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/8126693115799696482'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-2.html' title='Sample Program #2'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGSxEw0JfEwW9TWD-YyQvMMcJgCV7EoaEfutgvydqY9HZBTbWLVyAdxTEOSO_yKz4-f-qFO1JTnlqPwJGgelhyphenhyphen9ZnedQX4fMfxlVVRw1pnV70Lu_z0vzQPlYxfx9efLMozM0uT48eLGzI/s72-c/sample2.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-7984235346719357086.post-6786163262787533146</id><published>2012-07-12T15:33:00.001+08:00</published><updated>2012-07-13T11:00:41.509+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Simple Calculator (SUM)"/><title type='text'>Sample Program #1</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0aKp2UthN2Aqx5vU9784AN3haR-rAG9wyDwdNjW5VLg9WWIrvxoGTWjMnpbC1j_r1S2IsHPyF9NNBAxDbqcLakGjSvHgNZYwOR9P3WLuq246B3oAtGHTeFM1Lowg5uOfUd1QrWHJK6zo/s1600/sample1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;241&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0aKp2UthN2Aqx5vU9784AN3haR-rAG9wyDwdNjW5VLg9WWIrvxoGTWjMnpbC1j_r1S2IsHPyF9NNBAxDbqcLakGjSvHgNZYwOR9P3WLuq246B3oAtGHTeFM1Lowg5uOfUd1QrWHJK6zo/s400/sample1.JPG&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us create a program that will calculate the sum of two integers using the val(), str() and trim() function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #6aa84f;&quot;&gt;&#39;LONG METHOD STYLE CODE&lt;/span&gt;&lt;br /&gt;
Private Sub cmdcal_Click()&lt;br /&gt;
&amp;nbsp; Dim a, b, c As Integer&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; a = Val(txtn1.Text)&lt;br /&gt;
&amp;nbsp; b = Val(txtn2.Text)&lt;br /&gt;
&amp;nbsp; c = a + b&lt;br /&gt;
&amp;nbsp; txtsum.Text = Trim(Str(c))&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #38761d;&quot;&gt;&#39;SHORT METHOD STYLE CODE&lt;/span&gt;&lt;br /&gt;
Private Sub cmdcal_Click()&lt;br /&gt;
&amp;nbsp; txtsum.Text = Trim(Str(Val(txtn1.Text) + Val(txtn2.Text)))&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Discussion:&lt;br /&gt;
&lt;br /&gt;
The val() function will convert any string type value to a numeric value while the str() on the other hand will convert the numeric value to string type. During the conversion of numeric data type to string, a space is added thus trim() function will remove the spaces&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/6786163262787533146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7984235346719357086/posts/default/6786163262787533146'/><link rel='alternate' type='text/html' href='http://siruyvisualbasic.blogspot.com/2012/07/sample-program-1.html' title='Sample Program #1'/><author><name>Michael Vincent Galquiera Uy</name><uri>http://www.blogger.com/profile/01896308246480230261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxQqNq2jOT-guz26Wo63xjj055B9Op7_khRY0_qtlV0cfVymrntlgfWjgR4FNmuhaEx7_glyMNr0E07q22KQRQRJ4rvfofS101UXV-pxxPgH65n-69E4ykh37VJHB1tQ/s151/repair.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0aKp2UthN2Aqx5vU9784AN3haR-rAG9wyDwdNjW5VLg9WWIrvxoGTWjMnpbC1j_r1S2IsHPyF9NNBAxDbqcLakGjSvHgNZYwOR9P3WLuq246B3oAtGHTeFM1Lowg5uOfUd1QrWHJK6zo/s72-c/sample1.JPG" height="72" width="72"/></entry></feed>