- Visual Basic Codes List
- Visual Basic Code For Beginners
- Visual Basic Code For Simple Interest Calculator
- Visual Basic Codes Pdf
Even though temporarily commented, the snippets are also production, debugged code. This page has over 13,000 words of VB6 and SQL source code snippets, examples, samples, etc. A lot of the syntax remains eternal in the land of Visual Basic. Hopefully these code libraries will serve people well for many years. Dim lineCount As Integer, pos As Integer, txt As String lineCount = 0 pos = 1 txt = Text1.Text Do While pos 0 pos = InStr (pos + 1, txt, Chr$ (13)) lineCount = lineCount + 1 DoEvents Loop MsgBox 'Number of line (s) of text in text1.text: ' + CStr (lineCount), 32, 'Line Count'. Back to the top of the page. Finding Simple Interest And Compound Interest: Author: Divya M E-mail: Click to e-mail author Submitted: 4/9/2011 Version: VB 2005 Compatibility: VB 2005, VB 2008.
Before we dwell into the program code, we need to know some basic financial concepts. The term loan amortization means the computation of the amount of equal periodic payments necessary to provide lender with a specific interest return and repay the loan principal over a specified period. The loan amortization process involves finding the future payments whose present value at the load interest rate equal the amount of initial principal borrowed. Lenders use a loan amortization schedule to determine these payment amounts and the allocation of each payment to interest and principal.
Visual Basic Codes List
The formula to calculate periodic payment is
payment=Initial Principal/PVIFAn
where PVIFAn is known as present value interest factor for an annuity . The formula to compute PVIFAn
PVIFAn =1/i - 1/i(1+i)n
where n is the number of payments. Normally you can check up a financial table for the value of PVIFAn and then calculate the payments manually. You can also use a financial calculator to compute the values. However, if you already know how to write program in VB, why not create your very own financial calculator.
To calculate the payments for interest, you can multiply the initial principal with the interest rate, then use periodic payment to minus payment for interest. To calculate the balance at the end of a period, we use the formula
End-of_year principal=Beginning_of_year principal - periodic payment
The Interface
The code
Visual Basic Sample Codes E-Book is written by our webmaster, Dr.Liew. It comprises 258 pages of captivating contents and 48 fascinating Sample Codes.Perfect source of reference for your VB projects. Check it out.
About Us
The Tutor and webmaster of Vbtutor.net, Dr.Liew Voon Kiong , holds a Bachelor Degree in Mathematics, a Master Degree in Management and a Doctoral Degree in Business Administration. He obtained the DBA degree from the University of South Australia.
He has been involved in programming for more than years. He created the popular online Visual Basic Tutorial in 1996 and since then the web site has attracted millions of visitors .It is the top-ranked Visual Basic tutorial website in many search engines including Google. Besides that, he has also written a few Visual Basic related books. One of the books, Visual Basic 6 Made Easy was published by Creativespace.com, an Amazon.com publisher.
Visual Basic Code For Beginners
The Slot Machine created using VB6
Visual Basic Code For Simple Interest Calculator
Visual Basic Codes Pdf
Copyright©2008 Dr.Liew Voon Kiong. All rights reserved |Contact|Privacy Policy