Minggu, 08 November 2009

2. PROGRAM VB 6.0

Private Sub Command1_Click()
Text3.Text = Val(Text1.Text) * Val(Text2.Text)
If Text3.Text >= 500000 Then
Text4.Text = Val(Text3.Text) * 0.05
Text6.Text = "Dapat Diskon"
Else
Text4.Text = 0
Text6.Text = "Tidak Dapat Diskon"
End If
Text5.Text = Val(Text3.Text) - Val(Text4.Text)
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End Sub

Private Sub Command3_Click()
End
End Sub




 
 

Tidak ada komentar:

Posting Komentar