tugas VB.I

Gambar

tugas 2

Private Sub command3_Click()
text1.SetFocus
text1.Text = “”
text2.Text = “”
text3.Text = “”
text4.Text = “”
text5.Text = “”
text6.Text = “”

 

End Sub

 

Private Sub command4_Click()
Unload Me
End Sub

 

Private Sub command2_Click()
text1.SetFocus
text1.Text = “”
text2.Text = “”
text3.Text = “”
text4.Text = “”
text5.Text = “”
text6.Text = “”

 

End Sub

 

Private Sub command1_Click()
Dim S As String
Dim Total As Long
text5.Text = “20” & Left(text2.Text, 2)

 

S = Mid(text2.Text, 3, 1)
If S = “1” Then
text3.Text = “sistem Informasi”
ElseIf S = “2” Then
text3.Text = “Manajemen Informatika”
ElseIf S = “3” Then
text3.Text = “Tehnik Informatika”
ElseIf S = “04” Then
text3.Text = “Manajemen Komp. Akuntansi”
End If

 

text4.Text = Mid(text2.Text, 5, 2)
If S = “1” Then
text4.Text = “strata satu”
ElseIf S = “2” Then
text4.Text = “diploma tiga”
ElseIf S = “3” Then
text4.Text = “Diploma Empat”
ElseIf S = “4” Then
text4.Text = “Diploma Dua”
End If

 

text6.Text = text4
text6.Text = Right(text2.Text, 3)

 

 

 

End Sub

 

Private Sub Form_Activate()
text1.SetFocus
text1.Text = “”
text2.Text = “”
text3.Text = “”
text4.Text = “”
text5.Text = “”
text6.Text = “”

 

End Sub

 

Private Sub text1_Keypress(KeyAscii As Integer)
If KeyAscii = 13 Then
text2.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