skip to main |
skip to sidebar
Step 1 : Buatlah Function dengan kode sebagai berikut
Private Function Genapkan(ByVal Number As Double, Optional Range = 100) As Double
Genapkan = (Round((Number / Range) + 0.49)) * Range
End Function
Step 2 : Ketikan Kode pada Keypress di TextBox Gaji Pokok
Private Sub txt_gapok_KeyPress(KeyAscii As Integer)
If Not (KeyAscii >= Asc("0") & Chr(13) And KeyAscii <= Asc("9") & Chr(13) Or KeyAscii = vbKeyBack Or
KeyAscii = vbKeyDelete Or KeyAscii = vbKeySpace) Then
KeyAscii = 13
txt_tjkes = Genapkan(txt_gapok.Value / 12)
txt_tjjab.SetFocus
End If
End Sub
sourcode bisa di download disini
Path To Success by Learning Computer Science And Free Download Application
Wednesday, December 25, 2013
Pembulatan angka di vb6
Step 1 : Buatlah Function dengan kode sebagai berikut
Private Function Genapkan(ByVal Number As Double, Optional Range = 100) As Double
Genapkan = (Round((Number / Range) + 0.49)) * Range
End Function
Step 2 : Ketikan Kode pada Keypress di TextBox Gaji Pokok
Private Sub txt_gapok_KeyPress(KeyAscii As Integer)
If Not (KeyAscii >= Asc("0") & Chr(13) And KeyAscii <= Asc("9") & Chr(13) Or KeyAscii = vbKeyBack Or
KeyAscii = vbKeyDelete Or KeyAscii = vbKeySpace) Then
KeyAscii = 13
txt_tjkes = Genapkan(txt_gapok.Value / 12)
txt_tjjab.SetFocus
End If
End Sub
sourcode bisa di download disini
Tempat Download Aplikasi Android Gratis
Labels
Top Download PDF Belajar VB 6
Blog Archive
Powered by Blogger.
My Facebook
isaansori75@gmail.com
Popular Posts
-
Cara Root Sebagai berikut : Nih buat kalian para pengguna HH Smartfren Andromax U dan U2. Gua mau kasih tutorial cara mudah Root S...
-
Bahan - Bahannya : One Click Root DOWNLOAD Usb Driver DOWNLOAD Untuk langkah root : Instal Usb driver di pc/laptop agan Hubung...
-
Description The most REALISTIC and AUTHENTIC hunting sim returns. It's time to RELOAD your rifles and take to the wilds of Nort...



0 comments:
Post a Comment