Private Sub Form_Load()
CMBKOTOP.AddItem "Apple
MC965 Macbook Air"
CMBKOTOP.AddItem "Apple
MC966 Macbook Air"
CMBKOTOP.AddItem "Apple
MC968 Macbook Air"
CMBKOTOP.AddItem "Apple
MC969 Macbook Air"
CMBKOTOP.AddItem "Apple
MC700 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC721 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC723 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC311 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC313 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC314 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC318 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC322 Macbook Pro"
CMBKOTOP.AddItem "Apple
MC965 Macbook Air"
CMBKOTOP.AddItem "Apple
MC966 Macbook Air"
End Sub
Private Sub cmbkotop_Click()
Dim m, hrg As String
Select Case CMBKOTOP.Text
Case "Apple MC965 Macbook
Air"
m = "Apple Macbook Air
MC965"
hrg = "12800000"
Case "Apple MC966 Macbook
Air"
m = "Apple Macbook Air
MC965"
hrg = "15800000"
Case "Apple MC968 Macbook
Air"
m = "Apple Macbook Air
MC968"
hrg = "9900000"
Case "Apple MC969 Macbook
Air"
m = "Apple Macbook Air
MC969"
hrg = "11900000"
Case "Apple MC700 Macbook
Pro"
m = "Apple Macbook Pro
MC700"
hrg = "10800000"
Case "Apple MC721 Macbook
Pro"
m = "Apple Macbook Pro
MC721"
hrg = "15900000"
Case "Apple MC723 Macbook
Pro"
m = "Apple Macbook Pro
MC723"
hrg = "19300000"
Case "Apple MC311 Macbook
Pro"
m = "Apple Macbook Pro
MC311"
hrg = "24200000"
Case "Apple MC313 Macbook
Pro"
m = "Apple Macbook Pro
MC313"
hrg = "11900000"
Case "Apple MC314 Macbook
Pro"
m = "Apple Macbook Pro
MC314"
hrg = "14700000"
Case "Apple MC318 Macbook Pro"
m = "Apple Macbook Pro
MC318"
hrg = "17600000"
Case "Apple MC322 Macbook
Pro"
m = "Apple Macbook Pro MC322"
hrg = "21300000"
Case "Apple MC965 Macbook Pro"
m = "Apple Macbook Pro
MC965"
hrg = "12800000"
Case "Apple MC966 Macbook Pro"
m = "Apple Macbook Pro
MC966"
hrg = "15800000"
End Select
TXTMT.Text = m
TXTHS.Text = hrg
TXTJJ.SetFocus
End Sub
Private Sub
cmdhitunglagi_Click()
cbokotop.Text = ""
TXTMT.Text = ""
TXTHS.Text = ""
TXTJJ.Text = ""
TXTDISC.Text = ""
TXTTOYAR.Text = ""
TXTHP = ""
End Sub
Private Sub cmdkeluar_Click()
Unload Me
End Sub
Private Sub cmdproses_Click()
TXTHP.Text = Val(TXTJJ.Text) *
Val(TXTHS.Text)
If TXTHP.Text >= 140000000
Then
TXTDISC.Text = (0.15) *
Val(TXTHP)
ElseIf TXTHP.Text >=
135000000 Then
TXTDISC.Text = (0.1) *
Val(TXTHP)
ElseIf TXTHP.Text >=
130000000 Then
TXTDISC.Text = (0.5) *
Val(TXTHP)
ElseIf TXTHP.Text >=
125000000 Then
TXTDISC.Text = (0.2) *
Val(TXTHP)
Else
txtdis.Text = 0
End If
TXTTOYAR.Text = Val(TXTHP) -
Val(TXTDISC)
End Sub
Private Sub
txtjj_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TXTHP.Text = Val(TXTHS) *
Val(TXTJJ)
End If
End Sub
Tidak ada komentar:
Posting Komentar