Form Nama dan Cara Memasak Form Input Bahan Form Input Cara Memasak Form LogIn

ListView1.GridLines = True ListView1.ColumnHeaders.Add , , Nama Masakan, ListView1.Width 3 ListView1.ColumnHeaders.Add , , Bahan Masakan, ListView1.Width 0.1 End Sub

3. Form Nama dan Cara Memasak

Private Sub cmdcari1_Click Dim Istilah, Makna As String ListView1.ListItems.Clear txtistilah = UCase txtistilah Open DATARESEP1.DAT For Input As 1 Do Until EOF1 Input 1, Istilah, Makna If UCaseIstilah Like txtistilah Then Set LI = ListView1.ListItems.Add, , Istilah LI.SubItems1 = Makna End If Loop Close 1 End Sub Private Sub cmdhapus_Click txtistilah.Text = txtistilah.SetFocus End Sub Private Sub cmdkembali_Click frmnamacara.Hide frmresep.Show txtistilah.Text = End Sub Private Sub Command1_Click frmmenumasakan.Show End Sub Private Sub Form_Load Dim LI As ListItem ListView1.View = lvwReport ListView1.Sorted = True ListView1.GridLines = True ListView1.ColumnHeaders.Add , , Nama Masakan, ListView1.Width 3 ListView1.ColumnHeaders.Add , , Cara Memasak, ListView1.Width 0.1 End Sub Universitas Sumatera Utara

4. Form Input Bahan

Private Sub cmdhapus_Click txtIstilah = txtMakna = txtIstilah.SetFocus End Sub Private Sub cmdkeluar_Click frmresep.Show frminputbahan.Hide End Sub Private Sub cmdsimpan_Click If txtIstilah = Or txtMakna = Then GoTo AdaKosong Open DATARESEP.DAT For Append As 1 Write 1, txtIstilah, txtMakna Close 1 txtIstilah = txtMakna = txtIstilah.SetFocus Exit Sub AdaKosong: Beep If txtIstilah = Then txtIstilah.SetFocus If txtMakna = Then txtMakna.SetFocus End Sub

5. Form Input Cara Memasak

Private Sub cmdhapus1_Click txtIstilah = txtMakna = txtIstilah.SetFocus End Sub Private Sub cmdkeluar1_Click frmresep.Show frminputcara.Hide End Sub Private Sub cmdsimpan1_Click If txtIstilah = Or txtMakna = Then GoTo AdaKosong Open DATARESEP1.DAT For Append As 1 Write 1, txtIstilah, txtMakna Close 1 txtIstilah = txtMakna = txtIstilah.SetFocus Exit Sub AdaKosong: Beep If txtIstilah = Then txtIstilah.SetFocus If txtMakna = Then txtMakna.SetFocus End Sub Universitas Sumatera Utara

6. Form LogIn

Private Sub cmdlogin_Click If txtnama.Text = dhita And txtpass.Text = bismillah Then frminputbahan.Show frmlogin.Hide Else MsgBox Coba Ulangi, vbInformation End If txtnama.Text = txtpass.Text = End Sub Private Sub cmdulangi_Click txtnama = txtpass = End Sub Private Sub Command1_Click Unload Me End Sub

7. Form Help