Posting 4

Gambar

Private Sub Txt1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txt2.SetFocus
End If
End Sub

Private Sub OptTambah_Click()
Txt3.Text = Val(Txt1.Text) + Val(Txt2.Text)
End Sub

Private Sub OptKurang_Click()
Txt3.Text = Val(Txt1.Text) – Val(Txt2.Text)
End Sub

Private Sub OptKali_Click()
Txt3.Text = Val(Txt1.Text) * Val(Txt2.Text)
End Sub

Private Sub OptBagi_Click()
Txt3.Text = Val(Txt1.Text) / Val(Txt2.Text)
End Sub

Private Sub OptBagiBilangan_Click()
Txt3.Text = Val(Txt1.Text) \ Val(Txt2.Text)
End Sub

Private Sub OptPangkat_Click()
Txt3.Text = Val(Txt1.Text) ^ Val(Txt2.Text)
End Sub

Private Sub Optand_Click()
Txt3.Text = Val(Txt1.Text) & Val(Txt2.Text)
End Sub

Private Sub OptModulus_Click()
Txt3.Text = Val(Txt1.Text) Mod Val(Txt2.Text)
End Sub

Private Sub CmdDelete_Click()
Txt1.SetFocus
Txt1 = “”
Txt2 = “”
Txt3 = “”
OptTambah = False
OptKurang = False
OptKali = False
OptBagi = False
OptBagiBilangan = False
OptPangkat = False
Optand = False
OptModulus = False
End Sub

Private Sub CmdExit_Click()
End
End Sub

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s