TUGAS 4 yang ke8

LINTANG8

Private Sub Command2_Click()

Text1 = “”

Text2 = “”

Text3 = “”

Text4 = “”

Text5 = “”

Text6 = “”

Text1.SetFocus

End Sub

 

Private Sub Command3_Click()

Unload Me

End Sub

 

Private Sub Command1_Click()

If Text1.Text = “BIM” Then

Text2.Text = 50000

Text3.Text = “BIMA”

Text4.Text = “16.00 WIB”

Text6.Text = Val(Text2.Text) * Val(Text5.Text)

ElseIf Text1.Text = “EKO” Then

Text2.Text = 35000

Text3.Text = “EKONOMI”

Text4.Text = “19.00 WIB”

Text6.Text = Val(Text2.Text) * Val(Text5.Text)

ElseIf Text1.Text = “MUT” Then

Text2.Text = 23000

Text3.Text = “MUTIARA”

Text4.Text = “17.00 WIB”

Text6.Text = Val(Text2.Text) * Val(Text5.Text)

ElseIf Text1.Text = “SEN” Then

Text2.Text = 35000

Text3.Text = “SENJA”

Text4.Text = “20.00 WIB”

Text6.Text = Val(Text2.Text) * Val(Text5.Text)

End If

End Sub

 

 

Iklan

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 )

Foto Google+

You are commenting using your Google+ 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 )

w

Connecting to %s