Fungsi Terbilang

vb5.jpg
Listing Program :

Option Explicit
‘# Programmer yg ingin memakai Fungsi & Trick ini diharapkan men-
‘ cantumkan nama Programmer aslinya yaitu :
‘ Fandi a.k.a. Komek
‘ u/ kritik dan saran kirim email ke
‘ komekbtn@gmail.com
‘ YM : andie_komek

‘ viva VB Programmers !!
Private Sub Command1_Click()
Dim strTerbilang As String
Dim strNilai As String
Dim strNumerik As String

strNilai = Val(Text1.Text)

Terbilang CStr(strNilai), strTerbilang
Set2Numeric CStr(strNilai), strNumerik
Text2.Text = “”
Text2.Text = strTerbilang
Text3.Text = “”
Text3.Text = “Rp. ” + strNumerik + “,-”
Text4.Text = “”
Text4.Text = strTerbilang + ” rupiah”
End Sub

Private Sub Form_Load()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
ValidNumberFormat KeyAscii
End Sub

Iklan

3 Comments

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s