Tutorial Programming

Tutorial basic, Visual Studio VB.NET 2013 Membuat Function


Hallo sahabat saya akan menjelaskan Membuat Function pada visual studio 2013, oke langsung aja


Public Class Form1
Private Function FV(pv As Single, i As Single, n As Integer) As Double
FV = pv * (1 + i / 100) ^ n
End Function
Private Sub BtnCal_Click(sender As Object, e As EventArgs) Handles BtnCal.Click
Dim FutureVal As Single
Dim PresentVal As Single
Dim interest As Single
Dim period As Integer
PresentVal = TxtPV.Text
interest = TxtInt.Text
period = TxtN.Text
FutureVal = FV(PresentVal, interest, period)
LblFV.Text = Format(FutureVal, “$#,##0.00?)
End Sub
End Class









Sekian tutorial saya sahabat semoga bermanfaat yah.

No comments:

Post a Comment

Tutorial Programming Designed by Templateism | Ary EJFA Copyright © 2015

Theme images by richcano. Powered by Blogger.