Selasa, 12 Desember 2017

Tugas 3.1


Private Sub cbogol_Click()
Dim gapok, pajak, tunjangan, total As Variant
Select Case cbogol.Text
Case "I"
gapok = 1500000
tunjangan = 150000
Case "II"
gapok = 2000000
tunjangan = 200000
Case "III"
gapok = 2500000
tunjangan = 250000
Case "IV"
gapok = 3000000
tunjangan = 300000
Case Else
gapok = 0
tunjangan = 0
End Select
total = gapok + tunjangan
pajak = total * 0.1
txtgp.Text = gapok
txttj.Text = tunjangan
txtpj = pajak
txttt.Text = total - pajak
End Sub

Private Sub cmdbatal_Click()
kosong
End Sub

Private Sub cmdkeluar_Click()
Unload Me
End Sub

Private Sub cmdlagi_Click()
kosong
End Sub

Private Sub Form_Load()
cbogol.AddItem "I"
cbogol.AddItem "II"
cbogol.AddItem "III"
cbogol.AddItem "IV"
End Sub
Public Sub kosong()
Txtnidn.SetFocus
Txtnidn = ""
txtnp = ""
cbogol = ""
txtgp = ""
txttj = ""
txtpj = ""
txttt = ""
End Sub

Private Sub Txtnidn_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnp.SetFocus
End If
End Sub

Tidak ada komentar:

Posting Komentar

GRAFIK 3 DIMENSI PADA MATLAB

M enggunakan fungsi-fungsi built-in pada MATLAB. Ada 3 macam fungsi MATLAB yang sering digunakan untuk menggabar grafik tiga dimensi in...