You are on page 1of 2

SELECT mahasiswa2

SET ORDER TO npm


IF EMPTY(thisform.npm.Value)
MESSAGEBOX("Data tidak boleh kosong!!")
thisform.npm.SetFocus
RETURN
ELSE

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

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
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
endif

You might also like