tugas vb_2

 

 

 

 

 

 

 

Image
Private Sub Combo1_Click()
Dim GL As String
Dim GP, TJ, PJ, TT As Currency
GL = Combo1.Text
    If GL = “I” Then
    GP = 2000000
    TJ = 250000
    ElseIf GL = “II” Then
    GP = 3500000
    TJ = 300000
    ElseIf GL = “III” Then
    GP = 1500000
    TJ = 50000
    Else
    GP = 3000000
    TJ = 300000
    End If
PJ = (GP + TJ) / 10
TT = GP + TJ – PJ
Text3.Text = GP
Text4.Text = TJ
Text5.Text = PJ
Text6.Text = TT
End Sub

Private Sub Command1_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Combo1.Text = “”
Text1.SetFocus
End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Combo1.Text = “”
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Private Sub Form_Load()
Combo1.AddItem “I”
Combo1.AddItem “II”
Combo1.AddItem “III”
End Sub

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