Mohon maaf kalau penjelsannya terlalu berputar-putar.......namanya juga masih newbie berkata-kata .....hehehehehehe
Contohnya dilihat pada gambar dibawah :
- Form Tampilan Awal Program
- Form 1 Entry Data
- Form 2 Laporan Hasil
Sorce Code Program :
Tinggalkan komentarnya...untuk kritik dan sarannya...atau berbagi pengalaman mengenai program ini................!!!!!!!!
Private Sub Command1_Click()If List1 = "" ThenMsgBox ("Pilih daftar mata kuliah dulu.....!!!")List2.SetFocusElseList2.AddItem List1List1.RemoveItem List1.ListIndexEnd IfEnd Sub
Private Sub Command2_Click()For i = 0 To List1.ListCount - 1List1.Selected(i) = TrueList2.AddItem List1Next iList1.ClearEnd Sub
Private Sub Command3_Click()If List2 = "" ThenMsgBox ("Pilih daftar mata kuliah dulu.....!!!")List1.SetFocusElseList1.AddItem List2List2.RemoveItem List2.ListIndexEnd IfEnd Sub
Private Sub Command4_Click()For i = 0 To List2.ListCount - 1List2.Selected(i) = TruList1.AddItem List2Next iList2.ClearEnd Sub
Private Sub Command5_Click()For i = 0 To List2.ListCount - 1List2.Selected(i) = TrueList1.AddItem List2Next iText1.Text = ClearText2.Text = ClearCombo1 = ClearOption1 = FalseOption2 = FalseCheck1 = FalseCheck2 = FalseList2.ClearText1.SetFocusEnd Sub
Private Sub Command6_Click()Form2.ShowForm2.List1.AddItem (Text1)Form2.List1.AddItem (Text2)Form2.List1.AddItem (Combo1)If Option1 = True ThenForm2.List1.AddItem (Option1.Caption)End IfIf Option2 = True ThenForm2.List1.AddItem (Option2.Caption)End IfIf Check1 ThenForm2.List1.AddItem (Check1.Caption)End IfIf Check2 ThenForm2.List1.AddItem (Check2.Caption)End IfIf List2.ListIndex ThenForm2.List1.AddItem (List2)End IfFor i = 0 To Form1.List2.ListCount - 1Form1.List2.Selected(i) = TrueForm2.List1.AddItem Form1.List2Next iEnd Sub
Private Sub Command7_Click()EndEnd Sub
Private Sub Form_Load()MsgBox ("WELCOME FROM IMRAN")Combo1.AddItem "SISTEM INFORMASI"Combo1.AddItem "TEKNIK SIPIL"Combo1.AddItem "TEKNIK PERTAMBANGAN"Combo1.AddItem "ADMINISTRASI"List1.AddItem "LOGIKA"List1.AddItem "APLIKASI PERKANTORAN"List1.AddItem "MANAJEMEN BISNIS"List1.AddItem "MANAJEMEN STRATEGI"List1.AddItem "BAHASA INGGRIS"List1.AddItem "KEWARGANEGARAAN"End Sub