CARA MEMBUAT DAFTAR NILAI
Capture1

TUGAS 3

Private Sub Cmdbatal_Click()
Textnpm.SetFocus
Textnpm.Text = “”
Textnama.Text = “”
Textnilaiquiz.Text = “”
Textnilaitugas.Text = “”
Textnilaiuts.Text = “”
Textnilaiuas.Text = “”
Textnilaiakhir.Text = “”
End Sub

Private Sub Cmdkeluar_Click()
Unload Me
End Sub

Private Sub Cmdlagi_Click()
Textnpm.SetFocus
Textnpm.Text = “”
Textnama.Text = “”
Textnilaiquiz.Text = “”
Textnilaitugas.Text = “”
Textnilaiuts.Text = “”
Textnilaiuas.Text = “”
Textnilaiakhir.Text = “”
End Sub

Private Sub Cmdproses_Click()
Textnilaiakhir.Text = Val((Textnilaiquiz.Text) + Val(Textnilaitugas.Text) + Val(Textnilaiuts.Text) + Val(Textnilaiuas.Text)) / 4

End Sub
Private Sub Textnama_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textnilaiquiz.SetFocus
End If
End Sub

Private Sub Textnilaiquiz_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textnilaitugas.SetFocus
End If
End Sub

Private Sub Textnilaitugas_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textnilaiuts.SetFocus
End If
End Sub

Private Sub Textnilaiuts_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textnilaiuas.SetFocus
End If
End Sub

Private Sub Textnpm_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Textnama.SetFocus
End If
End Sub

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 )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s