Private Sub Command1_Click() MsgBox "Anda belum memilih buah"
Dim noind, jml As Integer Label8.Caption = 0 Dim hrg, sbtot, disk, tot As Currency Text1.Text = 0 Dim op1, op2 As Boolean End Select Else noind = List1.ListIndex Select Case noind op1 = Option1.Value Case Is = 0 op2 = Option2.Value hrg = 8000 jml = Text1.Text Case Is = 1 hrg = 9000 Case Is = 2 If op1 = True Then hrg = 11000 Select Case noind Case Else Case Is = 0 MsgBox "Anda belum memilih buah" hrg = 5000 Label8.Caption = 0 Case Is = 1 Text1.Text = 0 hrg = 6000 End Select Case Is = 2 End If hrg = 7000 Case Else sbtot = jml * hrg Label10.Caption = 0 If op1 = True Then Label11.Caption = 0 disk = 0.065 * sbtot Else Frame1.Caption = "Jenis Buah" disk = 0 Option1.Value = True End If Text1.Text = 0
tot = sbtot - disk Command1.Caption = "HITUNG"
Command2.Caption = "SELESAI" Label7.Caption = List1.Text Label8.Caption = hrg Option1.Caption = "lokal" Label9.Caption = sbtot Option2.Caption = "Import" Label10.Caption = disk Label11.Caption = tot End Sub
Private Sub Label12_Click()
End Sub End Sub Private Sub Command2_Click() End Private Sub Option1_Click() List1.Clear End Sub List1.AddItem "Apel Malang" List1.AddItem "Duku Malang" Private Sub Form_Load() List1.AddItem "Jeruk Palembang" Label1.Caption = "Jumlah beli" End Sub Label2.Caption = "Nama buah" Label3.Caption = "Harga/ kg" Private Sub Option2_Click() Label4.Caption = "Subtotal" List1.Clear Label5.Caption = "Diskon" List1.AddItem "Apel Washingtong" Label6.Caption = "Total Bayar" List1.AddItem "Kiwi" Label7.Caption = "" List1.AddItem "Jeruk Baby Egypt" Label8.Caption = 0 Label9.Caption = 0 End Sub