You are on page 1of 6

BAHASA PEMMOGRAA

Form dosen
Object ;Command1= hapus prosedur; click
IF RECCOUNT()=0
RETURN
ENDIF
p=MESSAGEBOX("Yakin Mau Dihapus??",32+1,"konfirmasi")
IF p=1
DELETE
Object ; Command2= simpan prosedur; click
WITH thisform
replace kd_dosen with.text1..value
replace nama_dosen with.text2.value
replace alamat with.text3.value
thisform.Refresh
ENDWITH
Object ; Command2= keluar prosedur; click
thisform.Release()
Object;fom1 prosedur; int
thisform.text1.value=' '
thisform. text2.value=' '
thisform. text3.value=' '
thisform. text1.setfocus()
Object ; fom1 prosedur; unload
close database
Object ; fom1 prosedur; load
close database
set talk off
set echo off
use table_dosen
form mahasiwa
Object ; Command2= simpan prosedur; click
APPEND BLANK
replace npm with thisform.text1.value
replace nama with thisform.text2.value
replace alamat with thisform.text3.value
replace jurusan with thisform.text4.value
replace semester with thisform.text5.value
thisform.init
Object;fom1 prosedur; int
thisform.text1.value=""
thisform.text2.value=""
thisform.text3.value=""
thisform.text4.value=""
thisform.text5.value=0
thisform.grid1.refresh
thisform.text1.setfocus
Object ; fom1 prosedur; load
close database
set talk off
set echo off
use table_mahasiswa
Object ; fom1 prosedur; unload
close database
Fom Mata kuliah
Object ; Command1= simpan prosedur; click
npm=alltrim(thisform.text1.value)
seek npm
if found()
*jik di temukan ,tampilan data
thisform.text1.value=npm
thisform.text2.value=nama
thisform.text3.value=alamat
thisform.text4.value=jurusan
thisform.text5.value=semester
thisform.grid1.refresh
*jika tidak di temukan ,tampilan pesan
messagebox("data tidak di temukan.!")
Object ;Command2= hapus prosedur; click
if thisform command1.caption =\<edit
IF RECCOUNT()=0
RETURN
ENDIF
p=MESSAGEBOX("Yakin Mau Dihapus??",32+1,"konfirmasi")
IF p=1
DELETE
Object ;Command3= keluar prosedur; click
Thisform.release()

thisform .init
thisform.text1.setfocus()
endif
Object;fom1 prosedur; int
thisform.text1.value=""
thisform.text2.value=""
thisform.text3.value=""
thisform.text4.value=""
thisform.text5.value=0
thisform.grid1. refresh
*menonaktipkan objek form kecuali text1
thisform.text2.enabled=.f.
thisform.text3.enabled=.f.
thisform.text4.enabled=.f.
thisform.text5.enabled=.f.
*mengaktifkan cursor di text1
thisform. text1.setfocus
Object;fom1 prosedur; load
close database
set talk off
set echo off
set safety off

use tbl_mahasiswa
index on npm to tbl_mahasiswa
set index to tbl_mahasiswa
Object ; fom1 prosedur; unload
close database
APPEND BLANK
replace kd_mk with thisform.text1.value
replace nama_mk with thisform.text2.value
replace sks with thisform.text3.value
thisform.init
thisform.text1.value=""
thisform.text2.value=""
thisform.text3.value=""
thisform.text1.setfocus
keluar

You might also like