Selasa, 12 Desember 2017

Tugas 3.6 DATA BUKU STMIK PRINGSEWU


Private Sub cmdbatal_Click()
Txtkode.Text = ""
txtjudul.Text = ""
txtpengarang.Text = ""
txttahun.Text = ""
txtpenerbit.Text = ""
txtharga.Text = ""
Txtkode.SetFocus
End Sub

Private Sub cmdkeluar_Click()
End
End Sub

Private Sub cmdlagi_Click()
Txtkode.Text = ""
txtjudul.Text = ""
txtpengarang.Text = ""
txttahun.Text = ""
txtpenerbit.Text = ""
txtharga.Text = ""
Txtkode.SetFocus
End Sub

Private Sub cmdproses_Click()
Dim A As String
A = Left(Txtkode.Text, 3)
If A = "SIM" Then
txtjudul.Text = "Sistem Informasi"
txtpengarang.Text = "Fadiya Ulfa"
txtharga.Text = "75900"
ElseIf A = "EDP" Then
txtjudul.Text = "Elektronik Data Processing"
txtpengarang.Text = "Nurul Agustina"
txtharga.Text = "62000"
ElseIf A = "MNJ" Then
txtjudul.Text = "Manajemen"
txtpengarang.Text = "Riyan Hidayat"
txtharga.Text = "42000"
ElseIf A = "CDR" Then
txtjudul.Text = "Corel draw"
txtpengarang.Text = "Siti Nur Khotimah"
txtharga.Text = "53000"
ElseIf A = "RPL" Then
txtjudul.Text = "Rekayasa Perangkat Lunak"
txtpengarang.Text = "Winda Erlianti"
txtharga.Text = "83000"
End If
txttahun.Text = "20" & Mid(Txtkode.Text, 5, 2)
A = Right(Txtkode.Text, 1)
If A = "A" Then
txtpenerbit.Text = "Andi Offset Yogyakarta"
ElseIf A = "I" Then
txtpenerbit.Text = "Indah Surabaya"
ElseIf A = "S" Then
txtpenerbit.Text = "Salemba Empat"
ElseIf A = "E" Then
txtpenerbit.Text = "Elek Media Komputindo"
ElseIf A = "M" Then
txtpenerbit.Text = "Maxicom"
End If
End Sub

Tidak ada komentar:

Posting Komentar

GRAFIK 3 DIMENSI PADA MATLAB

M enggunakan fungsi-fungsi built-in pada MATLAB. Ada 3 macam fungsi MATLAB yang sering digunakan untuk menggabar grafik tiga dimensi in...