Professional Documents
Culture Documents
SELECT Mahasiswa2
SELECT Mahasiswa2
IF EMPTY (thisform.namamhs.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.namamhs.SetFocus
RETURN
else
IF EMPTY (thisform.tmplahir.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.tmplahir.SetFocus
RETURN
ELSE
IF EMPTY (thisform.tgllahir.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.tgllahir.SetFocus
RETURN
ELSE
IF EMPTY (thisform.jurusan.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.jurusan.SetFocus
RETURN
ELSE
IF EMPTY (thisform.alamat.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.alamat.SetFocus
RETURN
ELSE
IF EMPTY (thisform.notelp.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.notelp.SetFocus
RETURN
ELSE
IF SEEK(thisform.npm.Value)=.t.
IF MESSAGEBOX("Data akan di simpan?",4+32,"PESAN")=6
SELECT mahasiswa2
SET ORDER TO npm
APPEND BLANK
replace NPM with thisform.npm.Value
replace namamhs with thisform.namamhs.Value
replace tmplahir with thisform.tmplahir.Value
replace tgllahir with thisform.tgllahir.Value
replace jurusan with thisform.jurusan.Value
replace alamat with thisform.alamat.Value
replace notelp with thisform.notelp.Value
thisform.GRDMAHASISWA2.Refresh
endif
ELSE
replace NPM with thisform.npm.Value
replace namamhs with thisform.namamhs.Value
replace tmplahir with thisform.tmplahir.Value=0
replace tgllahir with thisform.tgllahir.Value
replace jurusan with thisform.jurusan.Value
replace alamat with thisform.alamat.Value
replace notelp with thisform.notelp.Value
thisform.GRDMAHASISWA2.Refresh