You are on page 1of 2

FORM 1 (ACTIVATE)

IF EOF ()
MESSAGEBOX("DATA TIDAK DITEMUKAN")
ELSE
THISFORM.TEXT1.Value = tblmobil.kode_mobil
THISFORM.Text2.Value = tblmobil.merek
THISFORM.Text3.Value = tblmobil.jenis
THISFORM.Text4.Value = tblmobil.harga
ENDIF
FORM 1 (LOAD)
CLOSE TABLES ALL
USE tblmobil
SIMPAN (CLICK)
APPEND BLANK
replace kode_mobil WITH thisform.text1.Value
replace merek WITH thisform.text2.Value
replace jenis WITH thisform.text3.Value
replace harga WITH VAL(thisform.text4.Value)
thisform.command1.Click
BERSIH (CLICK)
thisform.text1.Value=""
thisform.text2.Value=""
thisform.text3.Value=""
thisform.text4.Value=""
thisform.text1.SetFocus
KELUAR (CLICK)
thisform.Release
DELETE (CLICK)
delete
thisform.text1.Value = ""
thisform.text2.Value = ""
thisform.text3.Value = ""
thisform.text4.Value = ""
thisform.text1.SetFocus
AWAL (CLICK)
GO TOP
thisform.Activate
MUNDUR (CLICK)
SKIP-1
IF BOF ()
GO TOP
ENDIF
THISFORM.Activate
MAJU (CLICK)
SKIP
IF EOF ()
GO BOTTOM
ENDIF
THISFORM.Activate
AKHIR (CLICK)
GO BOTTOM
THISFORM.Activate

You might also like