A-1 LISTING PROGRAM. Halaman Koneksi. Universitas Sumatera Utara
|
|
- Job Pitts
- 6 years ago
- Views:
Transcription
1 A-1 LISTING PROGRAM Halaman Koneksi Imports System.Data.OleDb Imports System.Data.OleDb.OleDbCommand Module koneksi Public con As OleDbConnection Public cmd As OleDbCommand Public dtr As OleDbDataReader Dim mydatatable As DataTable Dim adapter As OleDbDataAdapter Private bindingsource1 As New BindingSource() Public Function _TesDB(ByVal src As String) As Boolean con = New OleDbConnection con.connectionstring = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=skripsi.accdb") Try con.open() Return True Catch ex As Exception MsgBox("Terjadi Error : " & ex.message) Return False Finally con.close() End Try End Function Public Function OpenDB() As Boolean con = New OleDbConnection con.connectionstring = ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=skripsi.accdb") Try con.open() Return True Catch ex As Exception MsgBox("Terjadi Error : " & ex.message) Return False End Try End Function Public Sub _TableData(ByVal sql As String, ByVal obj As Object) OpenDB() cmd = New OleDbCommand(sql, con) Try 'obj.datasource = Nothing dtr = cmd.executereader obj = New DataTable obj.load(dtr) Catch ex As Exception MsgBox("Terjadi Error : " & ex.message) Finally dtr.close() con.close() End Try Public Function _DataToValue(ByVal sql As String) As String OpenDB()
2 A-2 cmd = New OleDbCommand Try Dim p As String p = "" cmd.connection = con cmd.commandtype = Data.CommandType.Text cmd.commandtext = sql dtr = cmd.executereader If dtr.hasrows Then dtr.read() p = (dtr.item(0)) Return p.tostring Catch ex As Exception Return ex.message Finally 'dtr.close() con.close() End Try End Function Public Sub _RunSQL(ByVal sql As String) OpenDB() cmd = New OleDbCommand(sql, con) Try cmd.executenonquery() Catch ex As Exception MsgBox(ex.Message) Finally con.close() End Try Public Sub _BindingView(ByVal sql As String, ByVal obj As DataGridView) OpenDB() Dim da As New OleDbDataAdapter Dim ds As New DataSet Dim str1 As String = sql da.selectcommand = New OleDbCommand(sql, con) da.fill(ds) con.close() obj.datasource = ds.tables(0) Function _isbof(byval table As String, ByVal field As String, ByVal wherevalue As String) As Boolean Dim p As Integer p = _DataToValue("Select count(" & field & ") from " & table & " Where " & field & "='" & wherevalue & "'") If p < 1 Then Return True Else Return False End Function Function _isbof2(byval sql As String) As Boolean Dim p As Integer p = _DataToValue(sql) If p < 1 Then Return True
3 A-3 Else Return False End Function Function _CreateNumber(ByVal fieldname As String, ByVal tablename As String, ByVal UniqeFirstChar As String) As String OpenDB() cmd = New OleDbCommand Dim Hitung As String Dim p As String p = "" Try cmd.connection = con cmd.commandtype = Data.CommandType.Text cmd.commandtext = "Select " & fieldname & " from " & tablename dtr = cmd.executereader If dtr.hasrows Then dtr.read() Hitung = Right(dtr.Item(fieldname), 5) + 1 p = UniqeFirstChar & "-" & Right("0000" & Hitung, 5) Else p = UniqeFirstChar & "-" & "00001" Return p.tostring Catch ex As Exception Return ex.message Finally 'dtr.close() con.close() End Try Return p End Function Public Sub _TxtNull(ByVal frm As Object) For Each ctrl As Control In frm.controls If TypeOf ctrl Is TextBox Then CType(ctrl, TextBox).Text = String.Empty ctrl End Module Halaman Login Public Class FormMasuk Private Sub btntutup_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btntutup.click Dim keluar As MsgBoxResult keluar = MsgBox("Tutup Aplikasi?", MsgBoxStyle.YesNo, "Informasi") If keluar = MsgBoxResult.Yes Then Close() Private Sub btnmasuk_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnmasuk.click If txtadmin.text = "smaistiqlal" And txtsandi.text = "delitua" Then FormAwal.Show() Me.Hide()
4 A-4 txtadmin.text = "" txtsandi.text = "" lblinfo.visible = False Else txtadmin.text = "" txtsandi.text = "" txtadmin.focus() lblinfo.visible = True End Class Halaman Awal Public Class FormAwal Private Sub btntutup_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btntutup.click FormMasuk.Show() Me.Hide() Private Sub btnsiswa_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnsiswa.click FormSiswa.Show() Me.Hide() Private Sub btnguru_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnguru.click FormGuru.Show() Me.Hide() Private Sub btninfo_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btninfo.click FormInfo.Show() Me.Hide() Private Sub btnproses_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnproses.click FormProses.Show() Me.Hide() End Class Halaman Siswa Public Class FormSiswa Sub kosong() txtnis.text = "" txtnama.text = "" ComboBoxJK.Text = "" ComboBoxKelas.Text = "" ComboBoxMapelSiswa.Text = "" ComboBoxMapelOrtu.Text = "" txtmm.text = "" txtbindo.text = "" txtbing.text = ""
5 A-5 txtipa.text = "" lblmm1.text = "" lblfis1.text = "" lblkim1.text = "" lblbio1.text = "" lblbsi1.text = "" lblbsing1.text = "" lblba1.text = "" lblant1.text = "" Sub tampilisi() btnsimpan.visible = True btnubah.visible = False btnhapus.visible = False txtnis.enabled = True txtnama.enabled = True ComboBoxJK.Enabled = True ComboBoxKelas.Enabled = True Private Sub awal() koneksi._bindingview("select * from siswa", Me.dgsiswa) 'menampilkan isi dari database skripsi, table siswa _TxtNull(Me) dgsiswa.sort(dgsiswa.columns(3), System.ComponentModel.ListSortDirection.Ascending) dgsiswa.sort(dgsiswa.columns(0), System.ComponentModel.ListSortDirection.Ascending) Private Sub FormSiswa_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load awal() Me.Show() Application.DoEvents() tampilisi() txtnama.focus() ComboBoxJK.Items.Add("Laki-laki") ComboBoxJK.Items.Add("Perempuan") ComboBoxKelas.Items.Add("10.3") ComboBoxKelas.Items.Add("10.4") ComboBoxMapelSiswa.Items.Add("Matematika") ComboBoxMapelSiswa.Items.Add("Fisika") ComboBoxMapelSiswa.Items.Add("Kimia") ComboBoxMapelSiswa.Items.Add("Biologi") ComboBoxMapelSiswa.Items.Add("Bahasa dan Sastra Indonesia") ComboBoxMapelSiswa.Items.Add("Bahasa dan Sastra Inggris") ComboBoxMapelSiswa.Items.Add("Bahasa Arab") ComboBoxMapelSiswa.Items.Add("Antropologi") ComboBoxMapelOrtu.Items.Add("Matematika") ComboBoxMapelOrtu.Items.Add("Fisika") ComboBoxMapelOrtu.Items.Add("Kimia") ComboBoxMapelOrtu.Items.Add("Biologi") ComboBoxMapelOrtu.Items.Add("Bahasa dan Sastra Indonesia") ComboBoxMapelOrtu.Items.Add("Bahasa dan Sastra Inggris") ComboBoxMapelOrtu.Items.Add("Bahasa Arab") ComboBoxMapelOrtu.Items.Add("Antropologi") Private Sub btnsinkron_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnsinkron.click
6 A-6 lblmm1.text = txtmm.text lblfis1.text = txtipa.text lblkim1.text = txtipa.text lblbio1.text = txtipa.text lblbsi1.text = txtbindo.text lblbsing1.text = txtbing.text lblba1.text = "0" lblant1.text = "0" Private Sub dgsiswa_cellclick(byval sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgsiswa.cellclick On Error Resume Me.txtnis.Text = dgsiswa.rows(e.rowindex).cells(0).value Me.txtnama.Text = dgsiswa.rows(e.rowindex).cells(1).value Me.ComboBoxJK.Text = dgsiswa.rows(e.rowindex).cells(2).value Me.ComboBoxKelas.Text = dgsiswa.rows(e.rowindex).cells(3).value Me.ComboBoxMapelSiswa.Text = dgsiswa.rows(e.rowindex).cells(4).value Me.ComboBoxMapelOrtu.Text = dgsiswa.rows(e.rowindex).cells(5).value Me.txtmm.Text = dgsiswa.rows(e.rowindex).cells(6).value Me.txtbindo.Text = dgsiswa.rows(e.rowindex).cells(10).value Me.txtbing.Text = dgsiswa.rows(e.rowindex).cells(11).value Me.txtipa.Text = dgsiswa.rows(e.rowindex).cells(7).value Me.lblmm1.Text = dgsiswa.rows(e.rowindex).cells(6).value Me.lblfis1.Text = dgsiswa.rows(e.rowindex).cells(7).value Me.lblkim1.Text = dgsiswa.rows(e.rowindex).cells(8).value Me.lblbio1.Text = dgsiswa.rows(e.rowindex).cells(9).value Me.lblbsi1.Text = dgsiswa.rows(e.rowindex).cells(10).value Me.lblbsing1.Text = dgsiswa.rows(e.rowindex).cells(11).value Me.lblba1.Text = dgsiswa.rows(e.rowindex).cells(12).value Me.lblant1.Text = dgsiswa.rows(e.rowindex).cells(13).value Me.btnsimpan.Visible = False Me.btnubah.Visible = True Me.btnhapus.Visible = True Me.txtnis.Enabled = False Me.txtnama.Enabled = False Me.ComboBoxJK.Enabled = False Me.ComboBoxKelas.Enabled = False Private Sub btnhapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnhapus.click If Me.txtnis.Text <> vbnullstring Then _RunSQL("Delete from siswa where nis =" & Me.txtnis.Text & "") awal() kosong() tampilisi() txtnama.focus() Private Sub btnsimpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnsimpan.click _RunSQL("Insert into siswa values ('" & Me.txtnis.Text & "','" & Me.txtnama.Text & "','" & Me.ComboBoxJK.Text & "','" & Me.ComboBoxKelas.Text & "','" & Me.ComboBoxMapelSiswa.Text & "','" & Me.ComboBoxMapelOrtu.Text & "','" & Me.lblmm1.Text & "','" & Me.lblfis1.Text & "','" & Me.lblkim1.Text & "','" & Me.lblbio1.Text & "','" & Me.lblbsi1.Text & "','" & Me.lblbsing1.Text & "','" & Me.lblba1.Text & "','" & Me.lblant1.Text & "')")
7 A-7 awal() kosong() tampilisi() txtnama.focus() Private Sub btnkembali_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnkembali.click FormAwal.Show() Me.Hide() Private Sub btnubah_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnubah.click _RunSQL("Update siswa set mapel_siswa='" & Me.ComboBoxMapelSiswa.Text & "', mapel_ortu='" & Me.ComboBoxMapelOrtu.Text & "', nilai_mm='" & Me.lblmm1.Text & "', nilai_fis='" & Me.lblfis1.Text & "', nilai_kim='" & Me.lblkim1.Text & "', nilai_bio='" & Me.lblbio1.Text & "', nilai_bsi='" & Me.lblbsi1.Text & "', nilai_bsing='" & Me.lblbsing1.Text & "' Where nis=" & Me.txtnis.Text & "") awal() kosong() tampilisi() txtnama.focus() Private Sub btnreset_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnreset.click kosong() tampilisi() txtnama.focus() End Class Halaman Guru Public Class FormGuru Private Sub awal() koneksi._bindingview("select * from guru", Me.dgguru) 'menampilkan isi dari tabel guru _TxtNull(Me) dgguru.sort(dgguru.columns(0), System.ComponentModel.ListSortDirection.Ascending) Sub kosong() txtnama.text = "" txtniy.text = "" ComboBoxJKGuru.Text = "" ComboBoxMapel.Text = "" ComboBoxMapelGuru.Text = "" Sub tampilisi() btnsimpan.visible = True btnubah.visible = False btnhapus.visible = False txtniy.enabled = True txtnama.enabled = True ComboBoxJKGuru.Enabled = True
8 A-8 ComboBoxMapel.Enabled = True ComboBoxMapelGuru.Enabled = True Private Sub btnkembali_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnkembali.click FormAwal.Show() Me.Hide() Private Sub FormGuru_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load awal() tampilisi() ComboBoxJKGuru.Items.Add("Laki-laki") ComboBoxJKGuru.Items.Add("Perempuan") ComboBoxMapel.Items.Add("Pendidikan Agama") ComboBoxMapel.Items.Add("Pendidikan Kewarganegaraan") ComboBoxMapel.Items.Add("Bahasa Indonesia") ComboBoxMapel.Items.Add("Bahasa Inggris") ComboBoxMapel.Items.Add("Matematika") ComboBoxMapel.Items.Add("Fisika") ComboBoxMapel.Items.Add("Kimia") ComboBoxMapel.Items.Add("Biologi") ComboBoxMapel.Items.Add("Sejarah") ComboBoxMapel.Items.Add("Geografi") ComboBoxMapel.Items.Add("Ekonomi") ComboBoxMapel.Items.Add("Sosiologi") ComboBoxMapel.Items.Add("Seni Budaya") ComboBoxMapel.Items.Add("Pendidikan Jasmani") ComboBoxMapel.Items.Add("Teknologi Informasi dan Komunikasi") ComboBoxMapel.Items.Add("Bahasa Arab") ComboBoxMapel.Items.Add("Tata Boga") ComboBoxMapel.Items.Add("Bimbingan Konseling") ComboBoxMapelGuru.Items.Add("Matematika") ComboBoxMapelGuru.Items.Add("Fisika") ComboBoxMapelGuru.Items.Add("Kimia") ComboBoxMapelGuru.Items.Add("Biologi") ComboBoxMapelGuru.Items.Add("Bahasa dan Sastra Indonesia") ComboBoxMapelGuru.Items.Add("Bahasa dan Sastra Inggris") ComboBoxMapelGuru.Items.Add("Bahasa Arab") ComboBoxMapelGuru.Items.Add("Antropologi") Private Sub btnsimpan_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnsimpan.click _RunSQL("Insert into guru values ('" & Me.txtniy.Text & "','" & Me.txtnama.Text & "','" & Me.ComboBoxJKGuru.Text & "','" & Me.ComboBoxMapel.Text & "','" & Me.ComboBoxMapelGuru.Text & "')") awal() txtniy.text = "" txtnama.text = "" ComboBoxJKGuru.Text = "" ComboBoxMapel.Text = "" ComboBoxMapelGuru.Text = "" txtnama.focus() Private Sub dgguru_cellclick(byval sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgguru.cellclick Me.txtniy.Text = dgguru.rows(e.rowindex).cells(0).value
9 A-9 Me.txtnama.Text = dgguru.rows(e.rowindex).cells(1).value Me.ComboBoxJKGuru.Text = dgguru.rows(e.rowindex).cells(2).value Me.ComboBoxMapel.Text = dgguru.rows(e.rowindex).cells(3).value Me.ComboBoxMapelGuru.Text = dgguru.rows(e.rowindex).cells(4).value Me.btnsimpan.Visible = False Me.btnubah.Visible = True Me.btnhapus.Visible = True Me.txtniy.Enabled = False Me.txtnama.Enabled = False Me.ComboBoxJKGuru.Enabled = False Me.ComboBoxMapel.Enabled = False Private Sub btnhapus_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnhapus.click If Me.txtniy.Text <> vbnullstring Then _RunSQL("Delete from guru where niy =" & Me.txtniy.Text & "") awal() kosong() tampilisi() txtnama.focus() Private Sub btnubah_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnubah.click _RunSQL("Update guru set mapel_guru='" & Me.ComboBoxMapelGuru.Text & "' Where niy=" & Me.txtniy.Text & "") awal() kosong() tampilisi() txtnama.focus() Private Sub btnreset_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnreset.click kosong() tampilisi() txtnama.focus() End Class Halaman Proses Public Class FormProses Private Sub nilai() 'untuk mengambil nilai dari database siswa dan guru With dgnilai.columncount = 6.Columns(0).Name = "Mata Pelajaran".Columns(1).Name = "Nilai Siswa".Columns(2).Name = "Minat Siswa".Columns(3).Name = "Rekomen Guru".Columns(4).Name = "Jumlah Guru".Columns(5).Name = "Rekomen Ortu" With dgnilai Dim row1 As String() = New String() {"Matematika"} Dim row2 As String() = New String() {"Fisika"} Dim row3 As String() = New String() {"Kimia"}
10 A-10 Indonesia"} Inggris"} Dim row4 As String() = New String() {"Biologi"} Dim row5 As String() = New String() {"Bahasa dan Sastra Dim row6 As String() = New String() {"Bahasa dan Sastra Dim row7 As String() = New String() {"Bahasa Arab"} Dim row8 As String() = New String() {"Antropologi"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8) With dgnilai dgnilai.item(1, 0).Value = koneksi._datatovalue("select avg (nilai_mm) from siswa") dgnilai.item(1, 1).Value = koneksi._datatovalue("select avg (nilai_fis) from siswa") dgnilai.item(1, 2).Value = koneksi._datatovalue("select avg (nilai_kim) from siswa") dgnilai.item(1, 3).Value = koneksi._datatovalue("select avg (nilai_bio) from siswa") dgnilai.item(1, 4).Value = koneksi._datatovalue("select avg (nilai_bsi) from siswa") dgnilai.item(1, 5).Value = koneksi._datatovalue("select avg (nilai_bsing) from siswa") dgnilai.item(1, 6).Value = koneksi._datatovalue("select avg (nilai_ba) from siswa") dgnilai.item(1, 7).Value = koneksi._datatovalue("select avg (nilai_ant) from siswa") dgnilai.item(2, 0).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='matematika'") dgnilai.item(2, 1).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='fisika'") dgnilai.item(2, 2).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='kimia'") dgnilai.item(2, 3).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='biologi'") dgnilai.item(2, 4).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='bahasa dan Sastra Indonesia'") dgnilai.item(2, 5).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='bahasa dan Sastra Inggris'") dgnilai.item(2, 6).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='bahasa Arab'") dgnilai.item(2, 7).Value = koneksi._datatovalue("select count (mapel_siswa) from siswa where mapel_siswa='antropologi'") dgnilai.item(3, 0).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='matematika'") dgnilai.item(3, 1).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='fisika'") dgnilai.item(3, 2).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='kimia'") dgnilai.item(3, 3).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='biologi'") dgnilai.item(3, 4).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='bahasa dan Sastra Indonesia'")
11 A-11 dgnilai.item(3, 5).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='bahasa dan Sastra Inggris'") dgnilai.item(3, 6).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='bahasa Arab'") dgnilai.item(3, 7).Value = koneksi._datatovalue("select count (mapel_guru) from guru where mapel_guru='antropologi'") dgnilai.item(4, 0).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='matematika'") dgnilai.item(4, 1).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='fisika'") dgnilai.item(4, 2).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='kimia'") dgnilai.item(4, 3).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='biologi'") dgnilai.item(4, 4).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='bahasa Indonesia'") dgnilai.item(4, 5).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='bahasa Inggris'") dgnilai.item(4, 6).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='bahasa Arab'") dgnilai.item(4, 7).Value = koneksi._datatovalue("select count (guru_mapel) from guru where guru_mapel='antropologi'") dgnilai.item(5, 0).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='matematika'") dgnilai.item(5, 1).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='fisika'") dgnilai.item(5, 2).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='kimia'") dgnilai.item(5, 3).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='biologi'") dgnilai.item(5, 4).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='bahasa dan Sastra Indonesia'") dgnilai.item(5, 5).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='bahasa dan Sastra Inggris'") dgnilai.item(5, 6).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='bahasa Arab'") dgnilai.item(5, 7).Value = koneksi._datatovalue("select count (mapel_ortu) from siswa where mapel_ortu='antropologi'") Private Sub sinkron() 'mengubah nilai awal menjadi nilai yang sudah diintervalkan With dgnilaii 'tabel nilai yang sudah diintervalkan.columncount = 6.Columns(0).Name = "Mata Pelajaran".Columns(1).Name = "Nilai Siswa".Columns(2).Name = "Minat Siswa".Columns(3).Name = "Rekomen Guru".Columns(4).Name = "Jumlah Guru".Columns(5).Name = "Rekomen Ortu" With dgnilaii Dim row1 As String() = New String() {"Matematika"} Dim row2 As String() = New String() {"Fisika"} Dim row3 As String() = New String() {"Kimia"} Dim row4 As String() = New String() {"Biologi"} Dim row5 As String() = New String() {"Bahasa dan Sastra Indonesia"}
12 A-12 Inggris"} Dim row6 As String() = New String() {"Bahasa dan Sastra Dim row7 As String() = New String() {"Bahasa Arab"} Dim row8 As String() = New String() {"Antropologi"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8) With dgnilaii Dim n_s As Double Dim m_s As Double Dim r_g As Double Dim j_g As Double Dim r_o As Double n_s = dgnilai.item(1, i).value() If n_s < 21 Then dgnilaii.item(1, i).value = 1 ElseIf n_s >= 21 And n_s < 41 Then dgnilaii.item(1, i).value = 2 ElseIf n_s >= 41 And n_s < 61 Then dgnilaii.item(1, i).value = 3 ElseIf n_s >= 61 And n_s < 81 Then dgnilaii.item(1, i).value = 4 Else dgnilaii.item(1, i).value = 5 m_s = dgnilai.item(2, i).value() If m_s <= 5 Then dgnilaii.item(2, i).value = 1 ElseIf m_s >= 6 And m_s < 11 Then dgnilaii.item(2, i).value = 2 ElseIf m_s >= 11 And m_s < 16 Then dgnilaii.item(2, i).value = 3 ElseIf m_s >= 16 And m_s < 21 Then dgnilaii.item(2, i).value = 4 Else dgnilaii.item(2, i).value = 5 r_g = dgnilai.item(3, i).value() If r_g <= 3 Then dgnilaii.item(3, i).value = 1 ElseIf r_g >= 4 And r_g < 7 Then dgnilaii.item(3, i).value = 2 ElseIf r_g >= 7 And r_g < 10 Then dgnilaii.item(3, i).value = 3 ElseIf r_g >= 10 And r_g < 13 Then dgnilaii.item(3, i).value = 4 Else dgnilaii.item(3, i).value = 5
13 A-13 j_g = dgnilai.item(4, i).value() If j_g <= 1 Then dgnilaii.item(4, i).value = 1 ElseIf j_g = 2 Then dgnilaii.item(4, i).value = 2 ElseIf j_g = 3 Then dgnilaii.item(4, i).value = 3 ElseIf j_g = 4 Then dgnilaii.item(4, i).value = 4 Else dgnilaii.item(4, i).value = 5 r_o = dgnilai.item(5, i).value() If r_o <= 5 Then dgnilaii.item(5, i).value = 1 ElseIf r_o >= 6 And r_o < 11 Then dgnilaii.item(5, i).value = 2 ElseIf r_o >= 11 And r_o < 16 Then dgnilaii.item(5, i).value = 3 ElseIf r_o >= 16 And r_o < 21 Then dgnilaii.item(5, i).value = 4 Else dgnilaii.item(5, i).value = 5 Private Sub priokriteria() 'untuk memberikan nilai prioritas setiap kriteria With dgkriteria.columncount = 2.Columns(0).Name = "Kriteria".Columns(0).Width = 110.Columns(1).Name = "Bobot Prioritas" With dgkriteria Dim row1 As String() = New String() {"Nilai Siswa"} Dim row2 As String() = New String() {"Minat Siswa"} Dim row3 As String() = New String() {"Rekomen Guru"} Dim row4 As String() = New String() {"Jumlah Guru"} Dim row5 As String() = New String() {"Rekomen Ortu"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5) With dgkriteria dgkriteria.item(1, 0).Value = txtkriteria1.text dgkriteria.item(1, 1).Value = txtkriteria2.text dgkriteria.item(1, 2).Value = txtkriteria3.text dgkriteria.item(1, 3).Value = txtkriteria4.text dgkriteria.item(1, 4).Value = txtkriteria5.text
14 A-14 Private Sub nilaiw() 'menghitung nilai Wi (WP) With dgperbot 'tabel perbaikan bobot.columncount = 2.Columns(0).Name = "Kriteria".Columns(0).Width = 110.Columns(1).Name = "W(i)" With dgperbot Dim row1 As String() = New String() {"Nilai Siswa"} Dim row2 As String() = New String() {"Minat Siswa"} Dim row3 As String() = New String() {"Rekomen Guru"} Dim row4 As String() = New String() {"Jumlah Guru"} Dim row5 As String() = New String() {"Rekomen Ortu"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5) With dgperbot Dim w As Double Dim sumw As Double For i = 0 To 4 sumw = sumw + dgkriteria.item(1, i).value() For i = 0 To 4 w = dgkriteria.item(1, i).value() dgperbot.item(1, i).value = w / sumw Private Sub nilais() 'menghitung nilai Si (WP) With dgsi.columncount = 2.Columns(0).Name = "Mata Pelajaran".Columns(1).Name = "S(i)" With dgsi Dim row1 As String() = New String() {"Matematika"} Dim row2 As String() = New String() {"Fisika"} Dim row3 As String() = New String() {"Kimia"} Dim row4 As String() = New String() {"Biologi"} Dim row5 As String() = New String() {"Bahasa dan Sastra Indonesia"} Dim row6 As String() = New String() {"Bahasa dan Sastra Inggris"} Dim row7 As String() = New String() {"Bahasa Arab"} Dim row8 As String() = New String() {"Antropologi"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7)
15 A-15.Rows.Add(row8) With dgsi Dim si As Double = 1 For n = 0 To 7 For m = 1 To 5 si = si * (dgnilaii.item(m, n).value() ^ dgperbot.item(1, m - 1).Value) dgsi.item(1, n).value = si si = 1 Private Sub nilaiv() 'menghitung nilai Vi (WP) With dgvi.columncount = 2.Columns(0).Name = "Mata Pelajaran".Columns(1).Name = "V(i)" With dgvi Dim row1 As String() = New String() {"Matematika"} Dim row2 As String() = New String() {"Fisika"} Dim row3 As String() = New String() {"Kimia"} Dim row4 As String() = New String() {"Biologi"} Dim row5 As String() = New String() {"Bahasa dan Sastra Indonesia"} Dim row6 As String() = New String() {"Bahasa dan Sastra Inggris"} Dim row7 As String() = New String() {"Bahasa Arab"} Dim row8 As String() = New String() {"Antropologi"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8) With dgvi Dim vi As Double Dim sumvi As Double sumvi = sumvi + dgsi.item(1, i).value() vi = dgsi.item(1, i).value() dgvi.item(1, i).value = vi / sumvi Private Sub ranking() 'merangkingkan mata pelajaran dari nilai Vi (WP) With dgrank.columncount = 3.Columns(0).Name = "Mata Pelajaran"
16 A-16.Columns(0).Width = 200.Columns(1).Name = "V(i)".Columns(2).Name = "Ranking" Indonesia"} Inggris"} Dim row1 As String() = New String() {"Matematika"} Dim row2 As String() = New String() {"Fisika"} Dim row3 As String() = New String() {"Kimia"} Dim row4 As String() = New String() {"Biologi"} Dim row5 As String() = New String() {"Bahasa dan Sastra Dim row6 As String() = New String() {"Bahasa dan Sastra Dim row7 As String() = New String() {"Bahasa Arab"} Dim row8 As String() = New String() {"Antropologi"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8) For j = 0 To 7 dgrank.item(1, j).value = dgvi.item(1, j).value() dgrank.sort(dgrank.columns(1), System.ComponentModel.ListSortDirection.Descending) dgrank.item(2, i).value = (i + 1) Private Sub kriteriasederhana() 'penyederhanaan kriteria (AHP) With dga 'tabel penyederhanaan kriteria.columncount = 7.Columns(0).Name = " ".Columns(0).Width = 50.Columns(1).Name = "K1".Columns(1).Width = 50.Columns(2).Name = "K2".Columns(2).Width = 50.Columns(3).Name = "K3".Columns(3).Width = 50.Columns(4).Name = "K4".Columns(4).Width = 50.Columns(5).Name = "K5".Columns(5).Width = 50.Columns(6).Name = "Eigen Vektor" With dga Dim row1 As String() = New String() {"K1"} Dim row2 As String() = New String() {"K2"} Dim row3 As String() = New String() {"K3"} Dim row4 As String() = New String() {"K4"} Dim row5 As String() = New String() {"K5"} Dim row6 As String() = New String() {"Jumlah"}
17 A-17.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6) With dga Dim suma, sumb, sumc, sumd, sume, sum, sumev, lbla As Double For i = 1 To 5 For j = 0 To 4 dga.item(i, j).value = dgkriteria.item(1, j).value() / dgkriteria.item(1, (i - 1)).Value() For i = 0 To 4 suma = suma + dga.item(1, i).value() sumb = sumb + dga.item(2, i).value() sumc = sumc + dga.item(3, i).value() sumd = sumd + dga.item(4, i).value() sume = sume + dga.item(5, i).value() dga.item(1, 5).Value() = suma dga.item(2, 5).Value() = sumb dga.item(3, 5).Value() = sumc dga.item(4, 5).Value() = sumd dga.item(5, 5).Value() = sume For i = 0 To 4 For j = 1 To 5 sum = sum + (dga.item(j, i).value() / dga.item(j, 5).Value()) dga.item(6, i).value = sum / 5 sum = 0 sumev = sumev + dga.item(6, i).value() dga.item(6, 5).Value() = sumev For i = 1 To 5 lbla = lbla + (dga.item(i, 5).Value() * dga.item(6, (i - 1)).Value()) lblpeva.text = lbla lblcia.text = (lbla - 5) / (5-1) Private Sub kriteria1() 'tabel matriks untuk kriteria 1 (AHP) With dgb.columncount = 10.Columns(0).Name = " ".Columns(0).Width = 50.Columns(1).Name = "A1".Columns(1).Width = 50.Columns(2).Name = "A2".Columns(2).Width = 50.Columns(3).Name = "A3".Columns(3).Width = 50.Columns(4).Name = "A4".Columns(4).Width = 50.Columns(5).Name = "A5"
18 A-18.Columns(5).Width = 50.Columns(6).Name = "A6".Columns(6).Width = 50.Columns(7).Name = "A7".Columns(7).Width = 50.Columns(8).Name = "A8".Columns(8).Width = 50.Columns(9).Name = "Eigen Vektor" With dgb Dim row1 As String() = New String() {"A1"} Dim row2 As String() = New String() {"A2"} Dim row3 As String() = New String() {"A3"} Dim row4 As String() = New String() {"A4"} Dim row5 As String() = New String() {"A5"} Dim row6 As String() = New String() {"A6"} Dim row7 As String() = New String() {"A7"} Dim row8 As String() = New String() {"A8"} Dim row9 As String() = New String() {"Jumlah"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8).Rows.Add(row9) With dgb Dim suma, sumb, sumc, sumd, sume, sumf, sumg, sumh, sum, sumev, lbla As Double For i = 1 To 8 For j = 0 To 7 dgb.item(i, j).value = dgnilaii.item(1, j).value() / dgnilaii.item(1, (i - 1)).Value() suma = suma + dgb.item(1, i).value() sumb = sumb + dgb.item(2, i).value() sumc = sumc + dgb.item(3, i).value() sumd = sumd + dgb.item(4, i).value() sume = sume + dgb.item(5, i).value() sumf = sumf + dgb.item(6, i).value() sumg = sumg + dgb.item(7, i).value() sumh = sumh + dgb.item(8, i).value() dgb.item(1, 8).Value() = suma dgb.item(2, 8).Value() = sumb dgb.item(3, 8).Value() = sumc dgb.item(4, 8).Value() = sumd dgb.item(5, 8).Value() = sume dgb.item(6, 8).Value() = sumf dgb.item(7, 8).Value() = sumg dgb.item(8, 8).Value() = sumh For j = 1 To 8
19 A-19 sum = sum + (dgb.item(j, i).value() / dgb.item(j, 8).Value()) dgb.item(9, i).value = sum / 8 sum = 0 sumev = sumev + dgb.item(9, i).value() dgb.item(9, 8).Value() = sumev For i = 1 To 8 lbla = lbla + (dgb.item(i, 8).Value() * dgb.item(9, (i - 1)).Value()) lblpevb.text = lbla lblcib.text = (lbla - 8) / (8-1) Private Sub kriteria2() 'tabel matriks untuk kriteria 2 (AHP) With dgc.columncount = 10.Columns(0).Name = " ".Columns(0).Width = 50.Columns(1).Name = "A1".Columns(1).Width = 50.Columns(2).Name = "A2".Columns(2).Width = 50.Columns(3).Name = "A3".Columns(3).Width = 50.Columns(4).Name = "A4".Columns(4).Width = 50.Columns(5).Name = "A5".Columns(5).Width = 50.Columns(6).Name = "A6".Columns(6).Width = 50.Columns(7).Name = "A7".Columns(7).Width = 50.Columns(8).Name = "A8".Columns(8).Width = 50.Columns(9).Name = "Eigen Vektor" With dgc Dim row1 As String() = New String() {"A1"} Dim row2 As String() = New String() {"A2"} Dim row3 As String() = New String() {"A3"} Dim row4 As String() = New String() {"A4"} Dim row5 As String() = New String() {"A5"} Dim row6 As String() = New String() {"A6"} Dim row7 As String() = New String() {"A7"} Dim row8 As String() = New String() {"A8"} Dim row9 As String() = New String() {"Jumlah"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8).Rows.Add(row9)
20 A-20 With dgc Dim suma, sumb, sumc, sumd, sume, sumf, sumg, sumh, sum, sumev, lbla As Double For i = 1 To 8 For j = 0 To 7 dgc.item(i, j).value = dgnilaii.item(2, j).value() / dgnilaii.item(2, (i - 1)).Value() suma = suma + dgc.item(1, i).value() sumb = sumb + dgc.item(2, i).value() sumc = sumc + dgc.item(3, i).value() sumd = sumd + dgc.item(4, i).value() sume = sume + dgc.item(5, i).value() sumf = sumf + dgc.item(6, i).value() sumg = sumg + dgc.item(7, i).value() sumh = sumh + dgc.item(8, i).value() dgc.item(1, 8).Value() = suma dgc.item(2, 8).Value() = sumb dgc.item(3, 8).Value() = sumc dgc.item(4, 8).Value() = sumd dgc.item(5, 8).Value() = sume dgc.item(6, 8).Value() = sumf dgc.item(7, 8).Value() = sumg dgc.item(8, 8).Value() = sumh For j = 1 To 8 sum = sum + (dgc.item(j, i).value() / dgc.item(j, 8).Value()) dgc.item(9, i).value = sum / 8 sum = 0 sumev = sumev + dgc.item(9, i).value() dgc.item(9, 8).Value() = sumev For i = 1 To 8 lbla = lbla + (dgc.item(i, 8).Value() * dgc.item(9, (i - 1)).Value()) lblpevc.text = lbla lblcic.text = (lbla - 8) / (8-1) Private Sub kriteria3() 'tabel matriks untuk kriteria 3 (AHP) With dgd.columncount = 10.Columns(0).Name = " ".Columns(0).Width = 50.Columns(1).Name = "A1".Columns(1).Width = 50.Columns(2).Name = "A2".Columns(2).Width = 50.Columns(3).Name = "A3".Columns(3).Width = 50.Columns(4).Name = "A4".Columns(4).Width = 50
21 A-21.Columns(5).Name = "A5".Columns(5).Width = 50.Columns(6).Name = "A6".Columns(6).Width = 50.Columns(7).Name = "A7".Columns(7).Width = 50.Columns(8).Name = "A8".Columns(8).Width = 50.Columns(9).Name = "Eigen Vektor" With dgd Dim row1 As String() = New String() {"A1"} Dim row2 As String() = New String() {"A2"} Dim row3 As String() = New String() {"A3"} Dim row4 As String() = New String() {"A4"} Dim row5 As String() = New String() {"A5"} Dim row6 As String() = New String() {"A6"} Dim row7 As String() = New String() {"A7"} Dim row8 As String() = New String() {"A8"} Dim row9 As String() = New String() {"Jumlah"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8).Rows.Add(row9) With dgd Dim suma, sumb, sumc, sumd, sume, sumf, sumg, sumh, sum, sumev, lbla As Double For i = 1 To 8 For j = 0 To 7 dgd.item(i, j).value = dgnilaii.item(3, j).value() / dgnilaii.item(3, (i - 1)).Value() suma = suma + dgd.item(1, i).value() sumb = sumb + dgd.item(2, i).value() sumc = sumc + dgd.item(3, i).value() sumd = sumd + dgd.item(4, i).value() sume = sume + dgd.item(5, i).value() sumf = sumf + dgd.item(6, i).value() sumg = sumg + dgd.item(7, i).value() sumh = sumh + dgd.item(8, i).value() dgd.item(1, 8).Value() = suma dgd.item(2, 8).Value() = sumb dgd.item(3, 8).Value() = sumc dgd.item(4, 8).Value() = sumd dgd.item(5, 8).Value() = sume dgd.item(6, 8).Value() = sumf dgd.item(7, 8).Value() = sumg dgd.item(8, 8).Value() = sumh
22 A-22 For j = 1 To 8 sum = sum + (dgd.item(j, i).value() / dgd.item(j, 8).Value()) dgd.item(9, i).value = sum / 8 sum = 0 sumev = sumev + dgd.item(9, i).value() dgd.item(9, 8).Value() = sumev For i = 1 To 8 lbla = lbla + (dgd.item(i, 8).Value() * dgd.item(9, (i - 1)).Value()) lblpevd.text = lbla lblcid.text = (lbla - 8) / (8-1) Private Sub kriteria4() 'tabel matriks untuk kriteria 4 (AHP) With dge.columncount = 10.Columns(0).Name = " ".Columns(0).Width = 50.Columns(1).Name = "A1".Columns(1).Width = 50.Columns(2).Name = "A2".Columns(2).Width = 50.Columns(3).Name = "A3".Columns(3).Width = 50.Columns(4).Name = "A4".Columns(4).Width = 50.Columns(5).Name = "A5".Columns(5).Width = 50.Columns(6).Name = "A6".Columns(6).Width = 50.Columns(7).Name = "A7".Columns(7).Width = 50.Columns(8).Name = "A8".Columns(8).Width = 50.Columns(9).Name = "Eigen Vektor" With dge Dim row1 As String() = New String() {"A1"} Dim row2 As String() = New String() {"A2"} Dim row3 As String() = New String() {"A3"} Dim row4 As String() = New String() {"A4"} Dim row5 As String() = New String() {"A5"} Dim row6 As String() = New String() {"A6"} Dim row7 As String() = New String() {"A7"} Dim row8 As String() = New String() {"A8"} Dim row9 As String() = New String() {"Jumlah"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8)
23 A-23.Rows.Add(row9) With dge Dim suma, sumb, sumc, sumd, sume, sumf, sumg, sumh, sum, sumev, lbla As Double For i = 1 To 8 For j = 0 To 7 dge.item(i, j).value = dgnilaii.item(4, j).value() / dgnilaii.item(4, (i - 1)).Value() suma = suma + dge.item(1, i).value() sumb = sumb + dge.item(2, i).value() sumc = sumc + dge.item(3, i).value() sumd = sumd + dge.item(4, i).value() sume = sume + dge.item(5, i).value() sumf = sumf + dge.item(6, i).value() sumg = sumg + dge.item(7, i).value() sumh = sumh + dge.item(8, i).value() dge.item(1, 8).Value() = suma dge.item(2, 8).Value() = sumb dge.item(3, 8).Value() = sumc dge.item(4, 8).Value() = sumd dge.item(5, 8).Value() = sume dge.item(6, 8).Value() = sumf dge.item(7, 8).Value() = sumg dge.item(8, 8).Value() = sumh For j = 1 To 8 sum = sum + (dge.item(j, i).value() / dge.item(j, 8).Value()) dge.item(9, i).value = sum / 8 sum = 0 sumev = sumev + dge.item(9, i).value() dge.item(9, 8).Value() = sumev For i = 1 To 8 lbla = lbla + (dge.item(i, 8).Value() * dge.item(9, (i - 1)).Value()) lblpeve.text = lbla lblcie.text = (lbla - 8) / (8-1) Private Sub kriteria5() 'tabel matriks untuk kriteria 5 (AHP) With dgf.columncount = 10.Columns(0).Name = " ".Columns(0).Width = 50.Columns(1).Name = "A1".Columns(1).Width = 50.Columns(2).Name = "A2".Columns(2).Width = 50.Columns(3).Name = "A3".Columns(3).Width = 50.Columns(4).Name = "A4"
24 A-24.Columns(4).Width = 50.Columns(5).Name = "A5".Columns(5).Width = 50.Columns(6).Name = "A6".Columns(6).Width = 50.Columns(7).Name = "A7".Columns(7).Width = 50.Columns(8).Name = "A8".Columns(8).Width = 50.Columns(9).Name = "Eigen Vektor" With dgf Dim row1 As String() = New String() {"A1"} Dim row2 As String() = New String() {"A2"} Dim row3 As String() = New String() {"A3"} Dim row4 As String() = New String() {"A4"} Dim row5 As String() = New String() {"A5"} Dim row6 As String() = New String() {"A6"} Dim row7 As String() = New String() {"A7"} Dim row8 As String() = New String() {"A8"} Dim row9 As String() = New String() {"Jumlah"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8).Rows.Add(row9) With dgf Dim suma, sumb, sumc, sumd, sume, sumf, sumg, sumh, sum, sumev, lbla As Double For i = 1 To 8 For j = 0 To 7 dgf.item(i, j).value = dgnilaii.item(5, j).value() / dgnilaii.item(5, (i - 1)).Value() suma = suma + dgf.item(1, i).value() sumb = sumb + dgf.item(2, i).value() sumc = sumc + dgf.item(3, i).value() sumd = sumd + dgf.item(4, i).value() sume = sume + dgf.item(5, i).value() sumf = sumf + dgf.item(6, i).value() sumg = sumg + dgf.item(7, i).value() sumh = sumh + dgf.item(8, i).value() dgf.item(1, 8).Value() = suma dgf.item(2, 8).Value() = sumb dgf.item(3, 8).Value() = sumc dgf.item(4, 8).Value() = sumd dgf.item(5, 8).Value() = sume dgf.item(6, 8).Value() = sumf dgf.item(7, 8).Value() = sumg dgf.item(8, 8).Value() = sumh
25 A-25 For j = 1 To 8 sum = sum + (dgf.item(j, i).value() / dgf.item(j, 8).Value()) dgf.item(9, i).value = sum / 8 sum = 0 sumev = sumev + dgf.item(9, i).value() dgf.item(9, 8).Value() = sumev For i = 1 To 8 lbla = lbla + (dgf.item(i, 8).Value() * dgf.item(9, (i - 1)).Value()) lblpevf.text = lbla lblcif.text = (lbla - 8) / (8-1) Private Sub nilaiahp() 'menghitung nilai untuk setiap alternatif (AHP) With dgg.columncount = 3.Columns(0).Name = "Mata Pelajaran".Columns(0).Width = 80.Columns(1).Name = "Nilai".Columns(1).Width = 60.Columns(2).Name = "Ranking".Columns(2).Width = 70 With dgg Dim row1 As String() = New String() {"A1"} Dim row2 As String() = New String() {"A2"} Dim row3 As String() = New String() {"A3"} Dim row4 As String() = New String() {"A4"} Dim row5 As String() = New String() {"A5"} Dim row6 As String() = New String() {"A6"} Dim row7 As String() = New String() {"A7"} Dim row8 As String() = New String() {"A8"}.Rows.Add(row1).Rows.Add(row2).Rows.Add(row3).Rows.Add(row4).Rows.Add(row5).Rows.Add(row6).Rows.Add(row7).Rows.Add(row8) With dgg dgg.item(1, i).value = (dga.item(6, 0).Value() * dgb.item(9, i).value()) + (dga.item(6, 1).Value() * dgc.item(9, i).value()) + (dga.item(6, 2).Value() * dgd.item(9, i).value()) + (dga.item(6, 3).Value() * dge.item(9, i).value()) + (dga.item(6, 4).Value() * dgf.item(9, i).value()) dgg.sort(dgg.columns(1), System.ComponentModel.ListSortDirection.Descending)
26 A-26 dgg.item(2, i).value = (i + 1) Sub ulang() dgnilai.rows.clear() dgnilai.columns.clear() dgnilaii.rows.clear() dgnilaii.columns.clear() dgkriteria.rows.clear() dgkriteria.columns.clear() dgperbot.rows.clear() dgperbot.columns.clear() dgsi.rows.clear() dgsi.columns.clear() dgvi.rows.clear() dgvi.columns.clear() dgrank.rows.clear() dgrank.columns.clear() dga.rows.clear() dga.columns.clear() dgb.rows.clear() dgb.columns.clear() dgc.rows.clear() dgc.columns.clear() dgd.rows.clear() dgd.columns.clear() dge.rows.clear() dge.columns.clear() dgf.rows.clear() dgf.columns.clear() dgg.rows.clear() dgg.columns.clear() btnsinkron.visible = False btnperbot.visible = False btnvi.visible = False btnsi.visible = False btnrank.visible = False btna.visible = False btnb.visible = False btnc.visible = False btnd.visible = False btne.visible = False btnf.visible = False btng.visible = False txtkriteria1.text = "" txtkriteria2.text = "" txtkriteria3.text = "" txtkriteria4.text = "" txtkriteria5.text = "" lblpeva.text = "" lblcia.text = "" lblpevb.text = "" lblcib.text = "" lblpevc.text = "" lblcic.text = "" lblpevd.text = "" lblcid.text = "" lblpeve.text = "" lblcie.text = ""
27 A-27 lblpevf.text = "" lblcif.text = "" Private Sub btnproses_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnproses.click nilai() //memasukkan nilai dari database ke tabel btnsinkron.visible = True btnprosesulang.visible = True Private Sub btnsinkron_click_1(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnsinkron.click sinkron() //mengintervalkan nilai btnperbot.visible = True btna.visible = True Private Sub btnkriteria_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnkriteria.click If txtkriteria1.text > 5 Or txtkriteria2.text > 5 Or txtkriteria3.text > 5 Or txtkriteria4.text > 5 Or txtkriteria5.text > 5 Then MessageBox.Show("Nilai Prioritas Kriteria Harus Bernilai 1-5", "Pesan", MessageBoxButtons.OK, MessageBoxIcon.Warning) ElseIf txtkriteria1.text < 1 Or txtkriteria2.text < 1 Or txtkriteria3.text < 1 Or txtkriteria4.text < 1 Or txtkriteria5.text < 1 Then MessageBox.Show("Nilai Prioritas Kriteria Tidak Boleh 0 dan Minus", "Pesan", MessageBoxButtons.OK, MessageBoxIcon.Warning) Else priokriteria() //memasukkan nilai kriteria Private Sub btnkembali_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnkembali.click FormAwal.Show() Me.Hide() Private Sub btnperbot_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnperbot.click nilaiw() //mencari nilai wi (WP) btnsi.visible = True Private Sub btnsi_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnsi.click nilais() //mencari nilai si (WP) btnvi.visible = True Private Sub btnvi_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnvi.click nilaiv() //mencari nilai vi (WP) btnrank.visible = True Private Sub btnrank_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnrank.click
28 A-28 ranking() //melakukan perankingan (WP) Private Sub btna_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btna.click kriteriasederhana() //penyederhanaan nilai kriteria (AHP) btnb.visible = True Private Sub btnb_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnb.click kriteria1() //membuat tabel matriks untuk kriteria 1 (AHP) btnc.visible = True Private Sub btnc_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnc.click kriteria2() //membuat tabel matriks untuk kriteria 2 (AHP) btnd.visible = True Private Sub btnd_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnd.click kriteria3() //membuat tabel matriks untuk kriteria 3 (AHP) btne.visible = True Private Sub btne_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btne.click kriteria4() //membuat tabel matriks untuk kriteria 4 (AHP) btnf.visible = True Private Sub btnf_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnf.click kriteria5() //membuat tabel matriks untuk kriteria 5 (AHP) btng.visible = True Private Sub btng_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btng.click nilaiahp() //membuat perankingan (AHP) Private Sub btnprosesulang_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btnprosesulang.click ulang() nilai() btnsinkron.visible = True Private Sub FormProses_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load btnprosesulang.visible = False End Class
29 CURRICULUM VITAE DATA DIRI Nama : Ammazizzaky Tarigan Tempat / Tanggal Lahir : Deli Tua / 19 September 1993 Alamat / Kode Pos : Jl. Kolam No. 54 Delitua / Agama : Islam Jenis Kelamin : Laki-laki arafat.avatar@gmail.com Nomor HP : PENDIDIKAN FORMAL : D3 Teknik Informatika : SMA Swasta Istiqlal Delitua : MTs Swasta Istiqlal Delitua : SD Swasta YPI Delitua : TK Swasta Singosari Delitua SEMINAR / KURSUS 2014 : Seminar Nasional Literasi Informasi 2014 Fakultas Ilmu Komputer dan Teknologi Informasi, Universitas Sumatera Utara 2011 : Workshop 3 Hari Bisa Web di Fakultas Matematika dan IPA 2011 : Seminar Teknologi Informasi The Development of ModernOperating System Technology: Android - The New Trend in Modern Operating System di 2010 : International Seminar on Mathematics and Its Applications di KEAHLIAN Bahasa Bahasa Pemrograman DBMS : Indonesia, Inggris : Visual Basic : MySQL PENGALAMAN ORGANISASI 2013 : Anggota Bidang Pendidikan IMMTIKA FMIPA USU 2012 : Angg. Bid. Pendidikan UKMI Al-Falak FMIPA USU 2009 : Ketua OSIS SMA Istiqlal Delitua
LAMPIRAN. Universitas Sumatera Utara
LAMPIRAN 1. Modul Imports System.Data Imports System.Data.OleDb Module Module1 Public conn As OleDbConnection Public CMD As OleDbCommand Public DS As New DataSet Public DA As OleDbDataAdapter Public RD
More informationPrivate Sub MenuUtamaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Me.ShowDialog() End Sub
LISTING PROGRAM Menu_Utama.vb Public Class FrmUtama Private Sub DataMovieToolStripMenuItem_Click(ByVal sender As DataMovieToolStripMenuItem.Click FrmMovie.ShowDialog() Private Sub DataPeminjamToolStripMenuItem_Click(ByVal
More informationLISTING PROGRAM. PrivateSub KeluarToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles KeluarToolStripMenuItem.Click Close() EndSub
LISTING PROGRAM 1.Tampilan awal PublicClassmm PrivateSub InputDataGuruToolStripMenuItem_Click(sender AsObject, e AsEventArgs) Handles InputDataGuruToolStripMenuItem.Click guru.show() Me.Hide() EndSub PrivateSub
More informationLISTING PROGRAM. 1. Module SkripsiUmri.py. import sys, operator, codecs, time. class Timer(object): def init (self): self.t1= time.
A1 LISTING PROGRAM 1. Module SkripsiUmri.py import sys, operator, codecs, time class Timer(object): def init (self): self.t1= time.time() def getelapsedltime(self): # gets total elapsed from class initialsation
More informationLAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN
LAMPIRAN A-2 : LAPORAN PENJUALAN DOKUMEN KELUARAN LAMPIRAN A-1 : NOTA DOKUMEN KELUARAN LAMPIRAN B MASUKAN SISTEM BERJALAN LAMPIRAN B-1 : DATA BARANG DOKUMEN MASUKAN LAMPIRAN B-2 : DATA PELANGGAN DOKUMEN
More informationLISTING PROGRAM. 1. Tampilan Awal. 2. Menu Login. Public Class Awal
LISTING PROGRAM 1. Tampilan Awal Public Class Awal Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick ProgressBar1.Increment(10) If ProgressBar1.Value
More informationLISTING PROGRAM. a = b; b = c; c = a + b; } fibs.reverse(); for (int i = 0; i < fibs.count; i++) { if (n >= fibs[i]) { n = n - fibs[i];
A-1 A LISTING PROGRAM 1. Fibonacci Code //membuat fungsi Fibonacci Code public static String GetFibonacciCode(int n) { StringBuilder fib = new StringBuilder("1"); int a, b, c; List fibs = new List();
More informationKartu Bimbingan Tugas Akhir Mahasiswa
KEMENTRIAN PENDIDIKAN DAN KEBUDAYAAN UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jln. Bioteknologi No. 1 Kampus USU Padang Bulan Medan-20155 Telp. (061) 8214290, 8211212, 8211414
More informationLAMPIRAN A LISTING PROGRAM
A-1 LAMPIRAN A LISTING PROGRAM FUNGSI public void StopWatchStart() stopwatch.reset(); stopwatch.start(); Cursor.Current = Cursors.WaitCursor; txtlog.text = ""; public void StopWatchStop(string Title) stopwatch.stop();
More informationLAMPIRAN A : LISTING PROGRAM
46 LAMPIRAN A : LISTING PROGRAM 1. Mainform /* * Created by SharpDevelop. * User: User7 * Date: 28/09/2015 * Time: 9:38 * * To change this template use Tools Options Coding Edit Standard Headers. */ using
More informationSEBARAN MATAKULIAH PROGRAM STUDI SARJANA TEKNIK SIPIL (S1) DI JURUSAN TEKNIK SIPIL UNIVERSITAS LAMPUNG
Saturday, November 00 0: - Last Updated Saturday, November 00 0:5 SEBARAN MATAKULIAH PROGRAM STUDI SARJANA TEKNIK SIPIL (S) DI JURUSAN TEKNIK SIPIL UNIVERSITAS LAMPUNG SEMESTER I (SEMESTER GANJIL) KODE
More informationA-1 LISTING PROGRAM. 1. Module1
A-1 LISTING PROGRAM 1. Module1 Imports System.Data.Odbc Imports System.Data Imports System.Data.SqlClient Imports MySql.Data.MySqlClient Module Module1 Public userid As String Public level As String Public
More informationLISTING PROGRAM. mainform.vb A-1. Universitas Sumatera Utara
A-1 LISTING PROGRAM mainform.vb Imports System.IO Public Class mainform Private Sub mainform_load(byval sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load enkripsirb.checked = True
More informationLISTING PROGRAM. // // TODO: Add constructor code after the InitializeComponent()
A-1 LISTING PROGRAM Form Mainform /* * Created by SharpDevelop. * User: Roni Anggara * Date: 5/17/2016 * Time: 8:52 PM * * To change this template use Tools Options Coding Edit Standard Headers. */ using
More informationLAMPIRAN LISTING PROGRAM
LAMPIRAN LISTING PROGRAM Imports System Imports System.IO Imports System.Math Public Class frmutama Dim dicari As DirectoryInfo Dim flpath As String, srcpath As String Dim asnode As Double, dsnode As Double,
More informationForm Adapter Example. DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date :
Form Adapter Example DRAFT Document ID : Form_Adapter.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 Form_Adapter.doc DRAFT page 1 Table of Contents Creating Form_Adapter.vb... 2 Adding the
More information'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("8b a5-46bb-a6a9-87b4949d1f4c")>
LAMPIRAN A : LISTING PROGRAM Imports System Imports System.Reflection Imports System.Runtime.InteropServices ' General Information about an assembly is controlled through the following ' set of attributes.
More informationDO NOT COPY AMIT PHOTOSTUDIO
AMIT PHOTOSTUDIO These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA) All rights
More informationWEEK 1. Event: Tick: Occurs when the specified timer interval has elapsed and the timer is enabled.
WEEK 1 Timer: A Timer is used to raise an event at user-defined intervals. It is optimized for use in Windows Forms applications. Timer is used to control and manage events that are time related. For example:
More informationLISTING PROGRAM. namespace vigenere_des { public partial class MainPage : PhoneApplicationPage { public MainPage() { InitializeComponent(); }
59 LISTING PROGRAM Form Utama : using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Navigation;
More informationLampiran 1 Kode Program
53 Lampiran 1 Kode Program Kode Program 1 Kode Menu Peminjaman Private Sub BT_Cari_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_Cari.Click Call CariKaset() Private Sub RB_CheckedChanged(ByVal
More informationKARTU BIMBINGAN TUGAS AKHIR MAHASISWA PEMBAHASAN PADA ASISTENSI MENGENAI, PADA BAB
62 KEMENTERIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jl. Bioteknologi No.1 Kampus USU Padang Bulan Medan 20155 Telp. (061) 8211050, 8214290, Fax (061)
More informationL A M P I R A N. Universitas Sumatera Utara
L A M P I R A N 1 Listing Program 1. Form Menu Public Class frm_menu Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click frm_login.show() Me.Hide()
More informationLearning VB.Net. Tutorial 19 Classes and Inheritance
Learning VB.Net Tutorial 19 Classes and Inheritance Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you
More informationLISTING CODE A-1. Indo_to_jawa_Fragments.java. package studio.arti.kamusjawaindonesia;
LISTING CODE A-1 Indo_to_jawa_Fragments.java package studio.arti.kamusjawaindonesia; import android.content.dialoginterface; import android.database.cursor; import android.database.sqlite.sqlitedatabase;
More informationLAMPIRAN A: Listing Program
78 LAMPIRAN A: Listing Program 1. Form Login Public Class FrmLogin Public user As String Private Sub CmdLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdLogin.Click Dim
More informationRevision for Final Examination (Second Semester) Grade 9
Revision for Final Examination (Second Semester) Grade 9 Name: Date: Part 1: Answer the questions given below based on your knowledge about Visual Basic 2008: Question 1 What is the benefit of using Visual
More informationA-1 LAMPIRAN A LISTING PROGRAM. Kode Program Form Main: Universitas Sumatera Utara
A-1 LAMPIRAN A A LISTING PROGRAM Kode Program Form Main: #Region Project Attributes #ApplicationLabel: Samuel Panjaitan #VersionCode: 1 #VersionName: #SupportedOrientations: portrait #CanInstallToExternalStorage:
More informationC4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions
C4.3, 4 Lab: Conditionals - Select Statement and Additional Input Controls Solutions Between the comments included with the code and the code itself, you shouldn t have any problems understanding what
More informationTutorial, Source code, Request Program Visual Basic
Tutorial, Source code, Request Program Visual Basic Oleh : Moh. A Azis Membuat Form Data Barang Program Persediaan Barang Form Data Barang digunakan untuk menyimpan data barang dan memberikan info mengenai
More informationLAMPIRAN. 1. Kode Program
1. Kode Program LAMPIRAN Kode Program 1. Kode program untuk Form Data Imports BusinessLib Public Class formdata #Region " Member " Dim _siswa As Siswa Dim _guru As Guru Dim _mapel As MataPelajaran Dim
More informationListing Progam. Universitas Sumatera Utara
60 Listing Progam Listing Program Tabel Index
More informationTutorial 5 Database. Adam Sek Keb Wira 12 A123 6 Amanah Tmn Mahkota
Task 1 Creating a database using Access 2010: Tutorial 5 Database 1. Using Microsoft Access create a database for; a. Name b. School c. Age d. Birth Cert No e. Year f. Address g. Date of birth 2. Type
More informationMainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.
APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown
More informationLAMPIRAN A : LISTING PROGRAM
LAMPIRAN A : LISTING PROGRAM 1. Form Utama (Cover) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text;
More informationLISTING PROGRAM. frmmenu.vb. frmlogin.vb. Universitas Sumatera Utara. Public Class frmmenu
LISTING PROGRAM frmmenu.vb Public Class frmmenu Private Sub QuitToolStripMenuItem_Click(ByVal sender As QuitToolStripMenuItem.Click Close() Private Sub OtoritasToolStripMenuItem_Click(ByVal sender As OtoritasToolStripMenuItem.Click
More information"!#... )*! "!# )+, -./ 01 $
Email engauday@hotmail.com! "!#... $ %&'... )*! "!# )+, -./ 01 $ ) 1+ 2#3./ 01 %.. 7# 89 ; )! 5/< 3! = ;, >! 5 6/.?
More informationLAMPIRAN 1 PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN
LAMPIRAN 1 ANGKET PENELITIAN PENGARUH KETERSEDIAAN KOLEKSI PERPUSTAKAAN TERHADAP MINAT BACA SISWA SMP NEGERI 30 MEDAN Saya mengharapkan kesediaan Saudara untuk mengisi angket dalam rangka penelitian tetang
More informationConnection Example. Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date :
Connection Example Document ID : Connection_Example.PDF Author : Michele Harris Version : 1.1 Date : 2009-06-19 page 1 Table of Contents Connection Example... 2 Adding the Code... 2 Quick Watch myconnection...
More informationHow to work with data sources and datasets
Chapter 14 How to work with data sources and datasets Objectives Applied Use a data source to get the data that an application requires. Use a DataGridView control to present the data that s retrieved
More informationDéclaration du module
Déclaration du module Imports System.IO Module ModuleStagiaires Public Structure Stagiaire Private m_code As Long Private m_nom As String Private m_prenom As String Public Property code() As Long Get Return
More informationA-1 LISTING PROGRAM. 1. Form1.cs. Universitas Sumatera Utara
A-1 LISTING PROGRAM 1. Form1.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using IronPython.Hosting; using Microsoft.Scripting;
More informationEnd Sub. Sub Kunci() Dim i As Integer For i = 0 To 4 Txtfield(i).Locked = True Next i grddatagrid.enabled = False End Sub
Source Aplikasi Sistem Informasi Akademik GENERAL Dim db As Connection Dim WithEvents adoprimaryrs1 As Recordset Dim WithEvents adoprimaryrs2 As Recordset Dim WithEvents rscaridata As Recordset Dim cekid
More informationIn this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result.
Simple Calculator In this tutorial we will create a simple calculator to Add/Subtract/Multiply and Divide two numbers and show a simple message box result. Let s get started First create a new Visual Basic
More informationLISTING PROGRAM. 1. Form Menu Utama. Universitas Sumatera Utara
LISTING PROGRAM 1. Form Menu Utama Dim LenTemp As Integer Dim SrtTemp As String Dim n As Integer Private Sub Form_Load() Call Tengah(Me) lhsysmenu = GetSystemMenu(Me.hwnd, False) lretval = RemoveMenu(lhSysMenu,
More informationก Microsoft Visual Studio 2008
ก 58 ก ก ก ก ก 58 59 ก Microsoft Visual Studio 2008 1. DVD ก MSVS2008 ก MSVS2008 ก ก MSVS2008 ก ก 180 DVD DVD ก MSVS2008 ก ก Install Visual Studio 2008 2. ก ก ก ก ก Next 3. ก ก Options Page ก Custom ก
More informationC# winforms gridview
C# winforms gridview using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More informationLampiran 2 MASTER TABEL
64 Lampiran 2 MASTER TABEL No. No. Responden Umur Pendidikan Pekerjaan Paritas Kanker 1 427363 35 S1 PNS 4 Tidak 2 504024 36 SMA IRT 4 Tidak 3 500316 35 SMA IRT 5 Tidak 4 504014 35 SMA PNS 1 Tidak 5 447158
More informationNearby Search Indekos Based Android Using A Star (A*) Algorithm
Journal of Physics: Conference Series PAPER OPEN ACCESS Nearby Search Indekos Based Android Using A Star (A*) Algorithm To cite this article: B Siregar et al 2018 J. Phys.: Conf. Ser. 978 012084 View the
More informationبسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية
بسم هللا الرحمن الرحيم المحاضرة السابعة مستوى ثالث علوم حاسوب برمجة مرئية 2 )عملي ) جامعة الجزيرة محافظة اب الجمهورية اليمنية النافذة الرئيسية وتمتلك الشفرة البرمجية التالية : زر االقسام fr_dept fd = new
More informationLISTING PROGRAM. private void filetoolstripmenuitem_click(object sender, EventArgs e) { this.hide(); Form2 fr = new Form2(); fr.
Kode Program Form Home namespace SkripsiLagi public partial class Form9 : Form public Form9() LISTING PROGRAM private void filetoolstripmenuitem_click(object sender, EventArgs e) Form2 fr = new Form2();
More informationDAFTAR PUSTAKA. Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England
DAFTAR PUSTAKA Bojic, Paul, 2008, Business Information System. Pearson Education Ltd., England Elib.unikom.ac.id, SQL Server, 27 April 2014. Jogiyanto. 2005. Analisis & Desain Sistem Informasi : Pendekatan
More informationLAMPIRAN FORM 1 Universitas Sumatera Universitas Utara
LAMPIRAN FORM 1 Private Sub Text2_KeyPress(KeyAscii As Integer) If KeyAscii = vbkeyreturn Then Set tbladministrator = New ADODB.Recordset With tbladministrator.open "SELECT * FROM Administrator WHERE userid
More informationC16 Visual Basic Net Programming
C16 Visual Basic Net Programming Student ID Student Name Date - Module Tutor - 1 P a g e Report Contents Introduction... 2 Software Development Process... 3 Self Reflection... 6 References... 6 Appendices...
More informationLISTING PROGRAM. % UIWAIT makes pertama wait for user response (see UIRESUME) % uiwait(handles.figure1);
LISTING PROGRAM FORM PERTAMA : function varargout = pertama(varargin) gui_singleton = 1; gui_state = struct('gui_name', mfilename,... 'gui_singleton', gui_singleton,... 'gui_openingfcn', @pertama_openingfcn,...
More informationITcertKing. The latest IT certification exam materials. IT Certification Guaranteed, The Easy Way!
ITcertKing The latest IT certification exam materials http://www.itcertking.com IT Certification Guaranteed, The Easy Way! Exam : 70-561-VB Title : TS: MS.NET Framework 3.5, ADO.NET Application Development
More informationVARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals
VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,
More informationMember Management System
Member Management System These codes are provided ONLY for reference / Help developers. And also SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUERMENT FOR THE AWARD OF BACHELOR OF COMPUTER APPLICATION (BCA)
More informationPENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE) SESI DIS 2017
PENDAFTARAN SEMESTER (DEP/DEE) SESI DIS 07 - SEMASA Compulsory DUB0 Compulsory DUE0 Compulsory **DRB000 0 4 Common Core DUW0 5 Common Core DBM0 6 Common Core DBS0 7 Discipline Core DET0 8 Discipline Core
More informationภาคผนวก ก. Source Code
ภาคผนวก ภาคผนวก ก. Source Code 154 155 Source Code ช อ Empbook Option Explicit On Option Strict On Imports System.data Imports System.Data.OleDb Public Class Empbook Dim Book_status As Integer = 1 'ęğŀşľłŀăăő
More informationElse. End If End Sub End Class. PDF created with pdffactory trial version
Dim a, b, r, m As Single Randomize() a = Fix(Rnd() * 13) b = Fix(Rnd() * 13) Label1.Text = a Label3.Text = b TextBox1.Clear() TextBox1.Focus() Private Sub Button2_Click(ByVal sender As System.Object, ByVal
More informationPLATFORM TECHNOLOGY UNIT-4
VB.NET: Handling Exceptions Delegates and Events - Accessing Data ADO.NET Object Model-.NET Data Providers Direct Access to Data Accessing Data with Datasets. ADO.NET Object Model ADO.NET object model
More informationLAMPIRAN A PROGRAM FLOWSTONE
LAMPIRAN A PROGRAM FLOWSTONE A-1 Tampilan GUI pada FlowStone A-2 Program Tambahan yang Dibuat Untuk Membaca Frekuensi A-3 Program Tambahan yang Dibuat Untuk Menyimpan Data A-4 LAMPIRAN B PROGRAM VISUAL
More informationVB. Microsoft. MS.NET Framework 3.5 ADO.NET Application Development
Microsoft 70-561-VB MS.NET Framework 3.5 ADO.NET Application Development Download Full Version : http://killexams.com/pass4sure/exam-detail/70-561-vb B. Catch ex As System.Data.SqlClient.SqlException For
More informationIOS Plus Trade - Web Services Version 4 Walkthrough
IOS Plus Trade - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IOS Plus Trade information The purpose of this walkthrough is to build the following Windows Forms Application that
More informationDetermination of the Winner of Project Tender Using Analytical Hierarchy Process
Vol.5 No.1 (Januari 2010) JURNAL GENERI 19 etermination of the Winner of Project Tender Using Analytical Hierarchy Process Julian Supardi 1, Endang Lestari 2, Fakultas Ilmu Komputer, Universitas Sriwijaya
More informationDAFTAR ISI ABSTRAK... 1 KATA PENGANTAR...ERROR! BOOKMARK NOT DEFINED. UCAPAN TERIMAKASIH...ERROR! BOOKMARK NOT DEFINED. DAFTAR ISI...
ABSTRAK Perkembangan teknologi scanner yang berkembang begitu pesat memunculkan ide yang menjadi dasar konsep tugas akhir ini. Pada awalnya scanner digunakan untuk membaca gambar sehingga dapat diolah
More informationObjectives. After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism
Polymorphism Objectives After completing this topic, the students will: Understand of the concept of polymorphism Know on How to implement 2 types of polymorphism Definition Polymorphism provides the ability
More informationAnalysis of System Requirements of Go-Edu Indonesia Application as a Media to Order Teaching Services and Education in Indonesia
IOP Conference Series: Materials Science and Engineering PAPER OPEN ACCESS Analysis of System Requirements of Go-Edu Indonesia Application as a Media to Order Teaching Services and Education in Indonesia
More informationHow to Validate DataGridView Input
How to Validate DataGridView Input This example explains how to use DR.net to set validation criteria for a DataGridView control on a Visual Studio.NET form. Why You Should Use This To add extensible and
More informationLAMPIRAN. Universitas Sumatera Utara
67 LAMPIRAN Lampiran A-1 Listing Program Visual Basic Private Sub mn_isidata_click() frm_isi_data.show Me.Hide Private Sub mn_koneksiport_click() frm_koneksi_port.show Me.Hide Private Sub mn_tentang_click()
More informationPENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE/DTK) SESI JUN 2018
SEMESTER (DEP/DEE/DTK) SESI JUN 08 Compulsory DUB0 Compulsory DUE0 Compulsory **DRB000 0 4 Common Core DUW0 5 Common Core DBM0 6 Common Core DBS0 7 Discipline Core DET0 8 Discipline Core DET0 9 Discipline
More informationHerefordshire College of Technology Centre Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3)
Student: Candidate Number: Assessor: Len Shand Herefordshire College of Technology Centre 24150 Edexcel BTEC Level 3 Extended Diploma in Information Technology (Assignment 1 of 3) Course: Unit: Title:
More informationADO.NET 2.0. database programming with
TRAINING & REFERENCE murach s ADO.NET 2.0 database programming with (Chapter 3) VB 2005 Thanks for downloading this chapter from Murach s ADO.NET 2.0 Database Programming with VB 2005. We hope it will
More informationLampiran 6 HASIL STATISTIK
Lampiran 6 HASIL STATISTIK Usia 11.37 of.450 Median 12.00 Mode 12 Std. Deviation 3.488 Minimum 2 Maximum 16 usia Frequency Valid Valid 2 2 3.3 3.3 3.3 4 2 3.3 3.3 6.7 6 2 3.3 3.3 10.0 7 4 6.7 6.7 16.7
More informationLAMPIRAN A: Listing Program
67 1. Form Menu Utama LAMPIRAN A: Listing Program Public Class MScreen Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Hide() Form1.Show()
More informationBuilding Windows Front Ends to SAS Software. Katie Essam Amadeus Software Limited 20 th May 2003
Building Windows Front Ends to SAS Software Katie Essam Amadeus Software Limited 20 th May 2003 Topics Introduction What is.net? SAS Software s Interoperability Communicating with SAS from VB.NET Conclusions
More informationTo enter the number in decimals Label 1 To show total. Text:...
Visual Basic tutorial - currency converter We will use visual studio to create a currency converter where we can convert a UK currency pound to other currencies. This is the interface for the application.
More informationKhối: Cao Đẳng nghề và Trung Cấp Năm 2009
Hướng Dẫn Thực Hành Lập Trình Windows Nâng Cao Khối: Cao Đẳng nghề và Trung Cấp Năm 2009 Hướng dẫn: Bài tập thực hành được chia làm nhiều Module Mỗi Module được thiết kế cho thời lượng là 3 tiết thực hành
More informationIRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information
IRESS Depth - Web Services Version 4 Walkthrough Visual Basic 2008 sample to retrieve IRESS Depth information The purpose of this walkthrough is to build the following Windows Forms Application that will
More informationDAFTAR ISI. HALAMAN JUDUL... Error! Bookmark not defined. LEMBAR PERSETUJUAN... Error! Bookmark not defined.
DAFTAR ISI Hlm HALAMAN JUDUL... Error! Bookmark not LEMBAR PERSETUJUAN... Error! Bookmark not LEMBAR PENGESAHAN... Error! Bookmark not LEMBAR PERSEMBAHAN... Error! Bookmark not ABSTRAK... Error! Bookmark
More informationUniversitas Sumatera Utara
LAMPIRAN Listing Program FormUtama.vb Public Class FormUtama Dim uchome As UcHome Dim ucconnection As UcConnection Dim ucbook As UcBook Dim ucanggota As UcAnggota Dim ucpeminjaman As UcPeminjaman Dim ucpengembalian
More informationThe following are required to duplicate the process outlined in this document.
Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed
More informationUnit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types
Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,
More informationImports System.Data.SqlClient. Public Class Phonebook
Imports System.Data.SqlClient Public Class Phonebook Dim vbdatabasedataset As New vbdatabasedataset() Dim PhonebookTableAdapter As New vbdatabasedatasettableadapters.phonebooktableadapter() Dim selection
More informationPROGRAMMING ASSIGNMENT: MOVIE QUIZ
PROGRAMMING ASSIGNMENT: MOVIE QUIZ For this assignment you will be responsible for creating a Movie Quiz application that tests the user s of movies. Your program will require two arrays: one that stores
More information% --- Executes on button press in btn_gsn. function btn_gsn_callback(hobject, eventdata, handles) GaussianSpeckleNoise close AiSoftware;
A-2 'gui_openingfcn', @AiSoftware_OpeningFcn,... 'gui_outputfcn', @AiSoftware_OutputFcn,... 'gui_layoutfcn', [],... 'gui_callback', []); if nargin && ischar(varargin{1}) gui_state.gui_callback = str2func(varargin{1});
More informationโปรแกรมช วยทดสอบหม อแปลงกระแส
โปรแกรมช วยทดสอบหม อแปลงกระแส 1.เมน ของโปรแกรม ภาพท 1 หน าเมน ของโปรแกรม Public Class frmmain Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
More informationBACHELOR S DEGREE COMPUTER SCIENCE) Minimum Graduating Credits 120 Component Credits
CURRICULUM STRUCTURE Students are required to complete a minimum of 0 credits to graduate with a Bachelor of Computer Science (Software Development). The programme components as follows: BACHELOR S DEGREE
More informationPengenalan Sistem Maklumat Dalam Pendidikan
Pengenalan Sistem Maklumat Dalam Pendidikan 1 RELATIONSHIP & QUERY DALAM MICROSOFT ACCESS Kandungan Definisi Relationship (Hubungan) Jenis Relationship Membina Relationship Definisi Query dan Fungsi Query
More informationPENDAFTARAN KURSUS SEMESTER 1 (DEP/DEE/DTK) SESI DIS 2018
PENDAFTARAN KURSUS SEMESTER (DEP/DEE/DTK) SESI DIS 08 KURSUS-KURSUS SEMASA KOD KURSUS Compulsory DUB0 Compulsory DUE0 Compulsory **DRB000 0 4 Common Core DUW0 5 Common Core DBM0 6 Common Core DBS0 7 Discipline
More informationCARA-CARA UNTUK MEMBUAT POSTER MELALUI PERISIAN PHOTOSHOP. Untuk membuat poster sediakan beberapa bahan seperti berikut:
CARA-CARA UNTUK MEMBUAT POSTER MELALUI PERISIAN PHOTOSHOP Untuk membuat poster sediakan beberapa bahan seperti berikut: Pastikan anda telah memindahkan gambar-gambar yang di ambil ke dalam komputer Pastikan
More informationAn implementation of super-encryption using RC4A and MDTM cipher algorithms for securing PDF Files on android
Journal of Physics: Conference Series PAPER OPEN ACCESS An implementation of super-encryption using RC4A and MDTM cipher algorithms for securing PDF Files on android To cite this article: M A Budiman et
More informationDevelopment of Sistem Informasi Pendataan Warga (Sitawar) for the Realization of Integrated Population Data at RT Level With RW
Development of Sistem Informasi Pendataan Warga (Sitawar) for the Realization of Integrated Population Data at RT Level With RW Diana Effendi 1), Beri Noviansyah 2) Program Studi Manajemen Informatika,
More informationOracle Rdb Developer Tools for Visual Studio Developer s Guide, Release Copyright 2011 Oracle Corporation Corporation. All rights reserved.
Oracle Rdb Developer Tools for Visual Studio Developer's Guide V7.3.2.1 May 2011 Oracle Rdb Developer Tools for Visual Studio Developer s Guide, Release 7.3-21 Copyright 2011 Oracle Corporation Corporation.
More informationLISTING PROGRAM. % Edit the above text to modify the response to help cover. % Last Modified by GUIDE v Jun :24:43
A1 LISTING PROGRAM 1. Form Cover function varargout = cover(varargin) COVER MATLAB code for cover.fig COVER, by itself, creates a new COVER or raises the existing singleton*. H = COVER returns the handle
More informationFOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources
FOR 240 Homework Assignment 4 Using DBGridView and Other VB Controls to Manipulate Database Introduction to Computing in Natural Resources This application demonstrates how a DataGridView control can be
More informationDatabase dan Sistem Manajemen Database
Database dan Sistem Manajemen Database Organisasi Data Data Field Unit terkecil dari data Record Kumpulan dari fields yg berhubungan File Kumpulan dari record Organisasi Data Folders Kumpulan dari files
More informationEXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!
EXAMGOOD QUESTION & ANSWER Exam Good provides update free of charge in one year! Accurate study guides High passing rate! http://www.examgood.com Exam : 70-561C++ Title : TS: MS.NET Framework 3.5, ADO.NET
More informationFAKULTI TEKNOLOGI & SAINS MAKLUMAT
FAKULTI TEKNOLOGI & SAINS MAKLUMAT PROGRAM KELAYAKAN MASUK SENARAI KURSUS Sarjana Sistem Sarjana Teknologi (Sains ) Mempunyai Ijazah Sarjanamuda Teknologi / Sains daripada Universiti Kebangsaan Malaysia;
More information