1. Objeck: Comand 1: procedure:clik
*
IF EMPTY(thisform.text1.value = "zapry")
*
=MESSAGEBOX("username anda salah",0+16,"info" )
thisform.text1.SetFocus
thisform.text1.Value=""
thisform.text2.Value=""
RETURN
*
ENDIF
*
IF EMPTY(thisform.text2.value = "zerba")
*
=MESSAGEBOX("password anda salah",0+16,"info" )
thisform.text2.SetFocus
thisform.text1.Value=""
thisform.text2.Value=""
RETURN
ENDIF
DO FORM form1.scx
thisform.text1.Value=""
thisform.text2.Value=""
commandd2 procedure:clik
thisform.Release
SELECT mahasiswa
SET ORDER TO STB && STB
seek(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")
ENDIF
ENDIF
2. *
IF EMPTY(thisform.text1.value)
*
=MESSAGEBOX("nama harus diisi dulu", 0+16,"infomasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
*
IF EMPTY(thisform.text2.value)
*
=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
IF EMPTY(thisform.text3.value)
*
=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
IF EMPTY(thisform.text4.value)
*
=MESSAGEBOX("alamat anda harus diisi dulu", 0+16,"informasi")
thisform.tetx1.setfocus
RETURN
*
ENDIF
SELECT mahasiswa
SET ORDER TO STB && STB
SEEK(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=""
ELSE
APPEND BLANK
WITH 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.Refresh
ENDWITH
MESSAGEBOX("yakin anda ingin menyimpan data ",1,"information")
thisform.text1.Value=""
thisform.text2.Value=""
thisform.text3.Value=""
thisform.text4.Value=0
ENDIF
ENDIF
thisform.text1.SetFocus
pilihan=MESSAGEBOX("yakin anda ingin menghapus data ini")
3. IF pilihan=1
SELECT mahasiswa
DELETE
thisform.grid1.Refresh
thisform.text1.Value=""
thisform.text2.Value=""
thisform.text3.Value=""
thisform.text4.Value=""
ENDIF
SELECT mahasiswa
SET ORDER TO STB && STB
seek(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")
ENDIF
ENDIF
SELECT akademik
APPEND BLANk
replace angkatan with thisform.combo1.Value
replace spp with thisform.tspp.Value
replace idd WITH thisform.text1.Value
thisform.grid1.Refresh
jwb = MESSAGEBOX("yakin anda sudah selasai",4+32,"info")
IF jwb =6 then
ENDIF
SELECT akademik
SET ORDER TO idd && idd
SEEK (ALLTRIM(thisform.text1.Value))
IF !EMPTY(thisform.text1.value)
IF FOUND()
thisform.combo1.Value=angkatan
thisform.tspp.Value=spp
ENDIF
4. DELETE
thisform.combo1.Value=angkatan
thisform.tspp.Value=spp
thisform.grid1.Refresh
ELSE
MESSAGEBOX("data yang di edit tidak temukan", 0 , "info")
ENDIF
IF thisform.combo1.Value="2006" then
thisform.tspp.Value=1600000
ELSE
IF thisform.combo1.Value="2007" then
thisform.tspp.Value=1700000
ELSE
IF thisform.combo1.Value="2008" then
thisform.tspp.Value=1800000
ELSE
IF thisform.combo1.Value="2009" then
thisform.tspp.Value=1900000
ELSE
IF thisform.combo1.Value="2010" then
thisform.tspp.Value=2000000
ELSE
IF thisform.combo1.Value="2011" then
thisform.tspp.Value=2100000
ELSE
thisform.tspp.Value=2200000
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
SELECT akademik
SET ORDER TO idd && idd
SEEK (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. IF thisform.combo1.Value="teknik informatika" then
thisform.text1.Value=100000
ELSE
IF thisform.combo1.Value="sistem informasih" then
thisform.text1.Value=100000
ELSE
thisform.text1.Value=50000
ENDIF
ENDIF
SELECT pembayaran
APPEND BLANK
replace jurusan WITH thisform.combo1.Value
replace pendaftara WITH thisform.text1.Value
thisform.grid1.refresh
MESSAGEBOX("data ingin sismpan data ",'')
keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info")
IF keluar=6
thisform.Release
ENDIF
keluar=messagebox(" anda ingin keluar dari form ini " , 4+64 , "info")
IF keluar=6
thisform.Release
ENDIF
6. Data mahasiswa commandd do form form1.scx
Tahun jurusan commandd do form form1.scx
Keluar command thisform.release