Objeck

251 views

Published on

zapry

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
251
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Objeck

  1. 1. Objeck: Comand 1: procedure:clik*IF EMPTY(thisform.text1.value = "zapry")*=MESSAGEBOX("username anda salah",0+16,"info" )thisform.text1.SetFocusthisform.text1.Value=""thisform.text2.Value=""RETURN*ENDIF*IF EMPTY(thisform.text2.value = "zerba")*=MESSAGEBOX("password anda salah",0+16,"info" )thisform.text2.SetFocusthisform.text1.Value=""thisform.text2.Value=""RETURNENDIFDO FORM form1.scxthisform.text1.Value=""thisform.text2.Value=""commandd2 procedure:clikthisform.ReleaseSELECT mahasiswaSET ORDER TO STB && STBseek(alltrim(thisform.text1.Value))IF !EMPTY(thisform.text1.value) IF FOUND() thisform.text2.Value=alamat thisform.text3.Value=asal thisform.text4.Value=nama ELSE MESSAGEBOX("data tidak temukan " ,0, "info") ENDIFENDIF
  2. 2. *IF EMPTY(thisform.text1.value)*=MESSAGEBOX("nama harus diisi dulu", 0+16,"infomasi")thisform.tetx1.setfocusRETURN*ENDIF*IF EMPTY(thisform.text2.value)*=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")thisform.tetx1.setfocusRETURN*ENDIFIF EMPTY(thisform.text3.value)*=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")thisform.tetx1.setfocusRETURN*ENDIFIF EMPTY(thisform.text4.value)*=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")thisform.tetx1.setfocusRETURN*ENDIFSELECT mahasiswaSET ORDER TO STB && STBSEEK(ALLTRIM(thisform.text1.Value))IF !EMPTY(thisform.text1.Value)MESSAGEBOX("data sudah ada",0,"info") IF FOUND() thisform.text1.Value="" thisform.text2.Value="" thisform.text3.Value="" thisform.text4.Value="" ELSEAPPEND BLANKWITH thisform replace stb WITH thisform.text1.Value replace alamat WITH thisform.text2.Value replace asal WITH thisform.text3.Value replace nama WITH thisform.text4.Value thisform.grid1.RefreshENDWITHMESSAGEBOX("yakin anda ingin menyimpan data ",1,"information") thisform.text1.Value="" thisform.text2.Value="" thisform.text3.Value="" thisform.text4.Value=0 ENDIFENDIFthisform.text1.SetFocuspilihan=MESSAGEBOX("yakin anda ingin menghapus data ini")
  3. 3. IF pilihan=1SELECT mahasiswa DELETE thisform.grid1.Refreshthisform.text1.Value=""thisform.text2.Value=""thisform.text3.Value=""thisform.text4.Value=""ENDIFSELECT mahasiswaSET ORDER TO STB && STBseek(alltrim(thisform.text1.Value))IF !EMPTY(thisform.text1.value) IF FOUND() thisform.text2.Value=alamat thisform.text3.Value=asal thisform.text4.Value=nama ELSE DELETE thisform.text2.Value=alamat thisform.text3.Value=asal thisform.text4.Value=nama thisform.grid1.Refresh MESSAGEBOX("data tidak temukan " ,0, "info") ENDIFENDIFSELECT akademikAPPEND BLANkreplace angkatan with thisform.combo1.Valuereplace spp with thisform.tspp.Valuereplace idd WITH thisform.text1.Valuethisform.grid1.Refreshjwb = MESSAGEBOX("yakin anda sudah selasai",4+32,"info")IF jwb =6 thenENDIFSELECT akademikSET ORDER TO idd && iddSEEK (ALLTRIM(thisform.text1.Value))IF !EMPTY(thisform.text1.value) IF FOUND() thisform.combo1.Value=angkatan thisform.tspp.Value=spp ENDIF
  4. 4. DELETE thisform.combo1.Value=angkatan thisform.tspp.Value=spp thisform.grid1.Refresh ELSE MESSAGEBOX("data yang di edit tidak temukan", 0 , "info")ENDIFIF thisform.combo1.Value="2006" then thisform.tspp.Value=1600000ELSEIF thisform.combo1.Value="2007" then thisform.tspp.Value=1700000ELSEIF thisform.combo1.Value="2008" then thisform.tspp.Value=1800000ELSEIF thisform.combo1.Value="2009" then thisform.tspp.Value=1900000ELSEIF thisform.combo1.Value="2010" then thisform.tspp.Value=2000000ELSEIF thisform.combo1.Value="2011" then thisform.tspp.Value=2100000ELSE thisform.tspp.Value=2200000ENDIFENDIFENDIFENDIFENDIFENDIFSELECT akademikSET ORDER TO idd && iddSEEK (ALLTRIM(thisform.text1.Value))IF !EMPTY(thisform.text1.value) IF FOUND() thisform.combo1.Value=angkatan thisform.tspp.Value=spp ENDIF DELETE thisform.combo1.Value=angkatan thisform.tspp.Value=spp thisform.grid1.Refresh ELSE MESSAGEBOX("data yang di edit tidak temukan", 0 , "info")ENDIF
  5. 5. IF thisform.combo1.Value="teknik informatika" then thisform.text1.Value=100000ELSEIF thisform.combo1.Value="sistem informasih" then thisform.text1.Value=100000ELSE thisform.text1.Value=50000ENDIFENDIFSELECT pembayaranAPPEND BLANKreplace jurusan WITH thisform.combo1.Valuereplace pendaftara WITH thisform.text1.Valuethisform.grid1.refreshMESSAGEBOX("data ingin sismpan data ",)keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info")IF keluar=6thisform.ReleaseENDIFkeluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info")IF keluar=6thisform.ReleaseENDIF
  6. 6. Data mahasiswa commandd do form form1.scxTahun jurusan commandd do form form1.scxKeluar command thisform.release

×