You are on page 1of 2

RUMUS Dim: ppn = totalhrg * 0.

Option Explicit If Val(Text3.Text) > 5 Then

Dim nama As String totalhrg = totalhrg

Dim harga As Currency diskon = totalhrg * 0.3

Dim diskon As Currency Else

Dim total As Currency totalhrg = totalhrg

Dim totalhrg As Currency diskon = 0

Dim ppn As Currency End If

Text4.Text = Format(totalhrg, "###,###")


RUMUS Combo1:
Text5.Text = Format(diskon, "###,###")
Private Sub Combo1_Click()
Text6.Text = Format(ppn, "###,###")
If Combo1.Text = "SS01" Then
total = (totalhrg - diskon) + ppn
nama = "Dancow"
Text7.Text = Format(total, "###,###")
harga = "200000"
End Sub
ElseIf Combo1.Text = "SS02" Then

nama = "Bendera"
RUMUS Hapus:

harga = "210000" Private Sub Command2_Click()

ElseIf Combo1.Text = "SS03" Then Text1.Text = ""

nama = "Bebelac" Text2.Text = ""

harga = "310000" Text3.Text = ""

ElseIf Combo1.Text = "SS02" Then Text4.Text = ""

nama = "Morinaga" Text5.Text = ""

harga = "350000" Text6.Text = ""

End If Text7.Text = ""

Text1.Text = nama Text8.Text = ""

Text2.Text = Format(harga, "###,###") Text9.Text = ""

End Sub Combo1.Text = "-Pilih-"

Combo1.SetFocus
RUMUS Proses:
End Sub
Private Sub Command1_Click()

totalhrg = harga * Val(Text3.Text)


RUMUS Keluar:
Private Sub Command3_Click()

End

End Sub

RUMUS Form Load:


Private Sub Form_Load()

Combo1.Text = "-Pilih-"

Combo1.AddItem "SS01"

Combo1.AddItem "SS02"

Combo1.AddItem "SS03"

Combo1.AddItem "SS04"

End Sub

RUMUS Jumlah Bayar (text8):


Private Sub Text8_LostFocus()

Text9.Text = Format(CSng(Text8.Text) -
CSng(Text7.Text), "Standard")

Command2.SetFocus

End Sub

You might also like