Anda di halaman 1dari 36

BAB IV

PEMBUATAN FORM UNTUK APLIKASI


Form digunakan untuk mengolah dan memproses data dalam suatu aplikasi. menambah
data, mengedit data, menghapus data, menampilkan data atau mencari data dapat
dilakukan melalui form dengan tampilan grafhics yang bagus. Sebuah form disimpan
dengan ekstensi.SCX
Contoh pembuatan program aplikasi pengolahan Data Stok Barang membutuhkan banyak
sekali form yang digunakan untuk mengolah data.
1. FORM ENTRY PETUGAS
Langkah membuat form entry data petugas adalah
1 Dari !ro"ect #anager klik tab Docs, sehingga menampilkan sub bagian Form,
R!ort "a# Lab$s seperti gambar $.1 diba%ah ini

gambar 4.1 Kotak dialog Project Manager Pada Tab Document
& 'lik tombol command (e%, ketika (e% Form tampil klik (e% Form, setelah itu
akan tampil "endela Form Designer yang biasanya diikuti oleh tampilnya !ropertis
dan Form Control. )ika "endela !ropertis dan form Control tidak tampil anda
dapat menampilkannya melalui menu *ie% dengan menandai Submenu Form
Control +oolbar dan !ropertis
, 'emudian aktifkan "endela Form Designer dengen mengklik satu kali pada "udul
atas "endela tersebut, selan"utnya simpan form dengan memilih menu File, Sa-e
dan ketikan nama form pada sa-e form as dengan nama petugas
$ Setelah menyimpan form, tinggal menambah ob"ect.ob"ect yang diperlukan dalam
pembuatan form pengolahan data perugas. /b"ect yang diperlukan adalah ob"ect
Label, +e0t Bo0, Command Button dan Control 1rid.
Label +e0t Bo0 Command Botton
1rid
Gambar 4.2 Tampilan designer Form
A. PROPERTIS OB%E&T
Nama
Ob'ct
Pro!rt(s N($a(
Form Caption
(ame
2uto Center
#D3Form
Sho%4indo%s
4indo%state
!engolahan Data !etugas
!etugas
.+.
.+.
1.3n +op.Le-el
5.(ormal
Label1 Caption 'ode !etugas
Label& Caption (ama
Label, Caption )abatan
Label$ Caption Sandi
+e0t1 (ame
#a0length
+0tkode
6
+e0t& (ame
#a0length
+0tnama
&5
+e0t, (ame
#a0length
+0t"abatan
&5
+e0t$ (ame
!ass%orChar
#a0length
t0tSandi
7
&6
+e0t6 (ame +0tcari
#a0length &5
Command1 (ame
Caption
Baru
89Baru
Command& (ame
Caption
Simpan
89Simpan
Command, (ame
Caption
Batal
89Batal
Command$ (ame
Caption
:ubah
89:ubah
Command6 (ame
Caption
;apus
89;apus
Command< (ame
Caption
2tas
=9
Cammand> (ame
Caption
#undur
9
Command? (ame
Caption
#a"u
@
CommandA (ame
Caption
Ba%ah
@=
Command15 (ame
Caption
Cari
89Cari
1rid1 (ame
:ead/nly
:ecordSource
1rid1
.+.
!etugas
Setelah Design Form selesai kemudian kita tinggal menuliskan code program sebagai
berikut B
B. PENULISAN &ODE PROGRAM
1 2ktifkan Form dengan mengklik "udul form, kemudian pilih
Act()at E)#t pada properties form 'lik Dua kali maka akan tampil "endela
tempat penulisan Code program seperti gambar diba%ah ini.
gambar 4.3 Tempat penulisan ode program
)ika sudah tampil tuliskan Code diba%ah ini
set delete on
select petugas
set order to kdptgs
count to ada
if ada @5
goto top
thisform.t0tkdptgs.-alueCkdptgs
thisform.t0tnmptgs.-alueCnmptgs
thisform.t0t"abatan.-alueC"abatan
thisform.t0tsandi.-alueCsandi
thisform.baru.enabledC.t.
thisform.rubah.enabledC.t.
thisform.hapus.enabledC.t.
thisform.cari.enabledC.t.
thisform.keluar.enabledC.t.
thisform.ma"u.enabledC.t.
thisform.mundur.enabledC.t.
else
thisform.t0tkdptgs.-alueCD D
thisform. t0tnmptgs.-alueCD D
thisform.t0t"abatan.-alueCD D
thisform. t0tsandi.-alueCD D
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
endif
thisform.t0tkdptgs.enabledC.f.
thisform.t0tnmptgs.enabledC.f.
thisform.t0t"abatan.enabledC.f.
thisform.t0tsandi.enabledC.f.
thisform.t0tcari.-isibleC.f.
& 2ktifkan +ombol Baru dengan cara mengklik kemudian pada propertiesnya pilih
Click E-ent kemudian klik dua kali sehingga tampil "endela penulisan code
program kemudin tuliskan Code !rogram +ombol baru Clik di ba%ah iniB
posisiCrecnoF
thisform.t0tnmptgs.enabledC.t.
thisform.t0t"abatan.enabledC.t.
thisform.t0tsandi.enabledC.t.
thisform.t0tkdptgs.-alueCD D
thisform. t0tnmptgs.-alueCD D
thisform.t0t"abatan.-alueCD D
thisform. t0tsandi.-alueCD D
thisform.baru.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
thisform. t0tnmptgs.setfocusF
, 'emudian untuk +ombol simpan tuliskan code diba%ah ini B
set delete off
if emptyFthisform. t0tkdptgs.-alue
messagebo0FD'ode !etugas ;arus Di3si GD,5H<$,D3nformasiD
else
-kdptgsCthisform. t0tkdptgs.-alue
select petugas
set order to kdptgs
set filter to
seek -kdptgs
if foundF
pCmessagebo0FDData Sudah 2da,2pakah #au Di!erbaharui ID,$H<$,D3nfoD
if pC<
recall
replace 'dptgs %ith thisform.t0tkdptgs.-alue
replace nmptgs %ith thisform.t0tnmptgs.-alue
replace "abatan %ith thisform.t0t"abatan.-alue
replace sandi %ith thisform.t0tsandi.-alue
endif
else
append blank
replace 'dptgs %ith thisform.t0tkdptgs.-alue
replace nmptgs %ith thisform.t0tnmptgs.-alue
replace "abatan %ith thisform.t0t"abatan.-alue
replace sandi %ith thisform.t0tsandi.-alue
endif
thisform.baru.enabledC.t.
thisform.rubah.enabledC.t.
thisform.hapus.enabledC.t.
thisform.cari.enabledC.t.
thisform.keluar.enabledC.t.
thisform.ma"u.enabledC.t.
thisform.mundur.enabledC.t.
set delete on
thisform.matiisianF
thisform. grid1.refreshF
thisform.t0tkdptgs.enabledC.f.
thisform.t0tnmptgs.enabledC.f.
thisform.t0t"abatan.enabledC.f.
thisform.t0tsandi.enabledC.f.
endif
$ Jntuk +ombol Batal Clik +uliskan Code program Diba%ah ini B
posisiCrecnoF
thisform.t0tnmptgs.enabledC.t.
thisform.t0t"abatan.enabledC.t.
thisform.t0tsandi.enabledC.t.
thisform.t0tkdptgs.-alueCD D
thisform. t0tnmptgs.-alueCD D
thisform.t0t"abatan.-alueCD D
thisform. t0tsandi.-alueCD D
thisform.baru.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
thisform. t0tnmptgs.setfocusF
6 Jntuk +ombol :ubah Clik +uliskan Code program Diba%ah ini B
posisiCrecnoF
thisform.t0tnmptgs.enabledC.t.
thisform.t0t"abatan.enabledC.t.
thisform.t0tsandi.enabledC.t.
thisform.baru.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
thisform. t0tkdptgs.enabledC.f.
thisform. t0tnmptgs.setfocusF
< Jntuk +ombol hapus Clik +uliskan Code program Diba%ah ini B
pCmessagebo0FDBenar #au D3 ;apusID,$H,&,D3nfoD
if pC<
delete
if eofF
goto bottom
else
skip
endif
thisform.ambildataF
thisform.grid1.refreshF
thisform.grid1.setfocusF
thisform.t0tkdptgs.-alueCkdptgs
thisform.t0tnmptgs.-alueCnmptgs
thisform.t0t"abatan.-alueC"abatan
thisform.t0tsandi.-alueCsandi
endif
> Jntuk +ombol 2tas Clik +uliskan Code program Diba%ah ini B
select petugas
goto top
thisform.t0tkdptgs.-alueCkdptgs
thisform.t0tnmptgs.-alueCnmptgs
thisform.t0t"abatan.-alueC"abatan
thisform.t0tsandi.-alueCsandi
? Jntuk +ombol #undur Clik +uliskan Code program Diba%ah ini B
select petugas
if bofF
messagebo0FD!osisi sudah di a%al file...GD,5H<$,D3nformasiD
goto top
else
skip .1
endif
thisform.t0tkdptgs.-alueCkdptgs
thisform.t0tnmptgs.-alueCnmptgs
thisform.t0t"abatan.-alueC"abatan
thisform.t0tsandi.-alueCsandi
A Jntuk +ombol #a"u Clik +uliskan Code program Diba%ah ini B
select petugas
if .not. eofF
skip
else
messagebo0FD!osisi sudah di akhir file...GD,5H<$,D3nformasiD
goto bottom
endif
thisform.t0tkdptgs.-alueCkdptgs
thisform.t0tnmptgs.-alueCnmptgs
thisform.t0t"abatan.-alueC"abatan
thisform.t0tsandi.-alueCsandi
15 Jntuk +ombol Ba%ah Clik +uliskan Code program Diba%ah ini B
select petugas
goto bottom
thisform.t0tkdptgs.-alueCkdptgs
thisform.t0tnmptgs.-alueCnmptgs
thisform.t0t"abatan.-alueC"abatan
thisform.t0tsandi.-alueCsandi
11 Jntuk +ombol 'eluar Clik +uliskan Code program Diba%ah ini
select petugas
set filter to
if deleteF
pack
endif
thisform.releaseF
*. FORM ENTRY SUPPLER
Jntuk memulai membuat Form Supplaer langkah yang dilakukan sama seperti
membuat Form petugas. Desainglah form hingga seperti gambar diba%ah ini B
Gambar 4.4 Tampilan Form Petugas
A. PROPERTI OB%E&T
Nama
Ob'ct
Pro!rt(s N($a(
Form Caption
(ame
2uto Center
#D3Form
Sho%4indo%s
4indo%state
!engolahan Data Supplier
Supplier
.+.
.+.
1.3n +op.Le-el
5.(ormal
Label1 Caption 'ode Supplier
Label& Caption (ama
Label, Caption 2lamat
Label$ Caption +elp
+e0t1 (ame
#a0length
+0tkode
A
+e0t& (ame
#a0length
+0tnama
&5
+e0t, (ame
#a0length
+0t2lamat
$5
+e0t$ (ame
!ass%orChar
#a0length
t0t+elp
7
1&
+e0t6 (ame
#a0length
+0tcari
&5
Command1 (ame
Caption
Baru
89Baru
Command& (ame
Caption
Simpan
89Simpan
Command, (ame
Caption
Batal
89Batal
Command$ (ame
Caption
:ubah
89:ubah
Command6 (ame
Caption
;apus
89;apus
Command< (ame
Caption
2tas
=9
Cammand> (ame
Caption
#undur
9
Command? (ame
Caption
#a"u
@
CommandA (ame
Caption
Ba%ah
@=
Command15 (ame
Caption
Cari
89Cari
1rid1 (ame 1rid1
:ead/nly
:ecordSource
.+.
Supplier
B. MET+ODE ,PROSEDURE-
#ethode Fprocedure digunakan untuk mempermudah dalam penulisan code program,
agar tidak ter"adi penulisan code secara berulang Kulang
Langkah.langkah dalam membuat procedure yaitu
1 !ilih #enu Form kemudian plih Submenu #ethode kemudian akan tampil
%indo%s (e% #ethode seperti gambar diba%ah ini
Gambar 4.! Tampilan Form Petugas
& 'etikan nama procedure pada (ame kemudian klik 2dd
, Jntuk mengakhiri klik tombol Close
&. PENULISAN &ODE PROGRAM
Jntuk penulisan Code program sama seperti code program form petugas, namun pada
form ini kita menggunakan metode procedure
1- Pros".r Mat((s(a#
thisform.t0tkdsup.enabledC.f.
thisform.t0tnmsup.enabledC.f.
thisform.t0talamat.enabledC.f.
thisform.t0ttlp.enabledC.f.
*- Pros".r +(".!(s(a#
thisform.t0tnmsup.enabledC.t.
thisform.t0talamat.enabledC.t.
thisform.t0ttlp.enabledC.t.
/- Pros".r Mat(tombo$
thisform.baru.enabledC.f.
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
0- Pros".r +(".!$
thisform.baru.enabledC.t.
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform.rubah.enabledC.t.
thisform.hapus.enabledC.t.
thisform.cari.enabledC.t.
thisform.keluar.enabledC.t.
thisform.ma"u.enabledC.t.
thisform.mundur.enabledC.t.
1- Pros".r Brs(2(s(a#
thisform.t0tkdsup.-alueCD D
thisform. t0tnmsup.-alueCD D
thisform.t0talamat.-alueCD D
thisform. t0ttlp.-alueCD D
3- Pros".r amb($"ata
select suplier
thisform.t0tkdsup.-alueCkdsup
thisform.t0tnmsup.-alueCnmsup
thisform.t0talamat.-alueCalamat
thisform.t0ttlp.-alueCtelp
4- Pros".r No
select suplier
set order to kdsup
goto bottom
if kdsupCspaceFA
mkdptgsCDS!L.55551D
else
mnoC-alFrightFkdsup,6H1
do case
case mno915
mkdptgsCDS!L.5555DHltrimFstrFmno
case mno9155
mkdptgsCDS!L.555DHltrimFstrFmno
case mno91555
mkdptgsCDS!L.55DHltrimFstrFmno
case mno915555
mkdptgsCDS!L.5DHltrimFstrFmno
case mno9155555
mkdptgsCDS!L.DHltrimFstrFmno
endcase
endif
thisform.tX+'Dsup.-alueCmkdptgs
5- Pros".r S(m!a#"ata
replace 'dsup %ith thisform.t0tkdsup.-alue
replace nmsup %ith thisform.t0tnmsup.-alue
replace alamat %ith thisform.t0talamat.-alue
replace telp %ith thisform.t0ttlp.-alue
6- Pros".r Act() Form
set delete on
select petugas
set order to kdptgs
count to ada
if ada @5
goto top
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matitombolF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.t0tcari.-isibleC.f.
17- Pros".r Tombo$ Bar. &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.bersihlayarF
thisform.matitombolF
thisform.batal.enabledC.t.
thisform.simpan.enabledC.t.
thisform.noF
thisform. t0tnmsup.setfocusF
11- Pros".r S(m!a# &$(8
set delete off
if emptyFthisform. t0tkdsup.-alue
messagebo0FD'ode !etugas ;arus Di3si GD,5H<$,D3nformasiD
else
-kdptgsCthisform. t0tkdsup.-alue
select suplier
set order to kdsup
set filter to
seek -kdptgs
if foundF
pCmessagebo0FDData Sudah 2da,2pakah #au Di!erbaharui ID,$H<$,D3nfoD
if pC<
recall
thisform.simpandataF
endif
else
append blank
thisform.simpandataF
endif
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
set delete on
thisform.matiisianF
thisform. grid1.refreshF
endif
1*- Pros".r Bata$ &$(8
thisform.bersihlayarF
select suplier
set order to kdsup
count to ada
if ada @ 5
goto posisi
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matiisianF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.t0tcari.-isibleC.f.
1/- Pros".r R.ba2 &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.matitombolF
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform. t0tkdsup.enabledC.f.
thisform. t0tnmsup.setfocusF
10- Pros".r +a!.s &$(8
pCmessagebo0FDBenar #au D3 ;apusID,$H,&,D3nfoD
if pC<
delete
if eofF
goto bottom
else
skip
endif
thisform.ambildataF
thisform.grid1.refreshF
thisform.grid1.setfocusF
endif
11- Pros".r Atas &$(8
select suplier
goto top
thisform.ambildataF
13- Pros".r M.#".r &$(8
select suplier
if bofF
messagebo0FD!osisi sudah di a%al file...GD,5H<$,D3nformasiD
goto top
else
skip .1
endif
thisform.ambildataF
14- Pros".r Ma'. &$(8
select suplier
if .not. eofF
skip
else
messagebo0FD!osisi sudah di akhir file...GD,5H<$,D3nformasiD
goto bottom
endif
thisform.ambildataF
15- Pros".r Ba9a2 &$(8
select suplier
goto bottom
thisform.ambildataF
16- Pros".r car( &$(8
thisform.t0tcari.-isibleC.t.
thisform.t0tcari.setfocusF
*7- Pros".r St Foc.s t:tcar(
if .not. emptyFthisform.t0tcari.-alue
lacakCthisform.t0tcari.-alue
select suplier
locate for upperFalltrimFsubstrFnmsup,1,lenFnmsupCupperFalltrimFlacak
if foundF
thisform.ambildataF
set filter to upperFalltrimFsubstrFnmsup,1,lenFlacakCupperFalltrimFlacak
thisform.grid1.refreshF
else
messagebo0FDData tidak adaLtidak ditemukan..GD,5H<$,D3nformasiD
endif
thisform.t0tcari.-isibleC.f.
endif
thisform.t0tcari.-alueCDD
*1- Pros".r K$.ar &$(8
select suplier
set filter to
if deleteF
pack
endif
thisform.releaseF
/. FORM ENTRY %ENIS BARANG
!rosedureLcode form "enis barang pada dasarnya sama dengan pembuanatan form
data !etugas , hanya ob"ek yang digunakan lebih sedikit. Designlah form data "enis
barang seperti gambar diba%ah ini atau menurut kreati-itas anda masing Kmasing.
Gambar 4." Tampilan Form #enis $arang
A. PROPERTI OB%E&T
Nama
Ob'ct
Pro!rt(s N($a(
Form Caption
(ame
2uto Center
#D3Form
Sho%4indo%s
4indo%state
!engolahan Data )enis Barang
)enis
.+.
.+.
1.3n +op.Le-el
5.(ormal
Label1 Caption 'ode )enis
Label& Caption )enis
+e0t1 (ame
#a0length
+0tkode
A
+e0t& (ame
#a0length
+0t)enis
,5
+e0t6 (ame
#a0length
+0tcari
,5
Command1 (ame
Caption
Baru
89Baru
Command& (ame
Caption
Simpan
89Simpan
Command, (ame
Caption
Batal
89Batal
Command$ (ame
Caption
:ubah
89:ubah
Command6 (ame
Caption
;apus
89;apus
Command< (ame
Caption
2tas
=9
Cammand> (ame
Caption
#undur
9
Command? (ame
Caption
#a"u
@
CommandA (ame
Caption
Ba%ah
@=
Command15 (ame
Caption
Cari
89Cari
1rid1 (ame
:ead/nly
:ecordSource
1rid1
.+.
"enis
B. PENULISAN &ODE PROGRAM
Jntuk penulisan Code program data "enis barang sama seperti code program form
petugas yaitu kita menggunakan methode prosedure
1- Pros".r Mat((s(a#
thisform.t0tkode"ns.enabledC.f.
thisform.t0t"enis.enabledC.f.
*- Pros".r +(".!(s(a#
thisform.t0tkode"ns.enabledC.t.
thisform.t0t"enis.enabledC.t.
/- Pros".r Mat(tombo$
thisform.baru.enabledC.f.
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
0- Pros".r +(".!tombo$
thisform.baru.enabledC.t.
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform.rubah.enabledC.t.
thisform.hapus.enabledC.t.
thisform.cari.enabledC.t.
thisform.keluar.enabledC.t.
thisform.ma"u.enabledC.t.
thisform.mundur.enabledC.t.
1- Pros".r Brs(2$a;ar
thisform.t0tkode"ns.-alueCD D
thisform. t0t"enis.-alueCD D
3- Pros".r amb($"ata
thisform.t0tkode"ns.-alueCkd"ns
thisform.t0t"enis.-alueC"enis
4- Pros".r No
select "enis
set order to kd"ns
goto bottom
if kd)(sCspaceFA
mkd"nsCD'M!.55551D
else
mnoC-alFrightFkd"ns,6H1
do case
case mno915
mkd"nsCD'M!.5555DHltrimFstrFmno
case mno9155
mkd"nsCD'M!.555DHltrimFstrFmno
case mno91555
mkd"nsCD'M!.55DHltrimFstrFmno
case mno915555
mkd"nsCD'M!.5DHltrimFstrFmno
case mno9155555
mkd"nsCD'M!.DHltrimFstrFmno
endcase
endif
thisform.tX+'/DE)(S.-alueCmkd"ns
5- Pros".r S(m!a#"ata
replace 'd"ns %ith thisform.t0tkode"ns.-alue
replace "enis %ith thisform.t0t"enis.-alue
6- Pros".r Act() Form
set delete on
select "enis
set order to kd"ns
count to ada
if ada @5
goto top
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matitombolF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.t0tcari.-isibleC.f.
17- Pros".r Tombo$ Bar. &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.bersihlayarF
thisform.matitombolF
thisform.batal.enabledC.t.
thisform.simpan.enabledC.t.
+;3SF/:#.(/F
thisform. t0t"enis.setfocusF
11- Pros".r S(m!a# &$(8
set delete off
if emptyFthisform. t0tkode"ns.-alue
messagebo0FD'ode )enis Barang ;arus Di3si GD,5H<$,D3nformasiD
else
-kd"nsCthisform. t0tkode"ns.-alue
select "enis
set order to kd"ns
set filter to
seek -kd"ns
if foundF
pCmessagebo0FDData Sudah 2da,2pakah #au Di!erbaharui ID,$H<$,D3nfoD
if pC<
recall
thisform.simpandataF
endif
else
append blank
thisform.simpandataF
endif
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
set delete on
thisform.matiisianF
thisform. grid1.refreshF
endif
1*- Pros".r Bata$ &$(8
thisform.bersihlayarF
select "enis
set order to kode"ns
count to ada
if ada @ 5
goto posisi
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matiisianF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.t0tcari.-isibleC.f.
1/- Pros".r R.ba2 &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.matitombolF
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform. t0tkd"enis.enabledC.f.
thisform. t0t"enis.setfocusF
10- Pros".r +a!.s &$(8
pCmessagebo0FDBenar #au D3 ;apusID,$H,&,D3nfoD
if pC<
delete
if eofF
goto bottom
else
skip
endif
thisform.ambildataF
thisform.grid1.refreshF
thisform.grid1.setfocusF
endif
11- Pros".r Atas &$(8
select "enis
goto top
thisform.ambildataF
13- Pros".r M.#".r &$(8
select "enis
if bofF
messagebo0FD!osisi sudah di a%al file...GD,5H<$,D3nformasiD
goto top
else
skip .1
endif
thisform.ambildataF
14- Pros".r Ma'. &$(8
select "enis
if .not. eofF
skip
else
messagebo0FD!osisi sudah di akhir file...GD,5H<$,D3nformasiD
goto bottom
endif
thisform.ambildataF
15- Pros".r Ba9a2 &$(8
select "enis
goto bottom
thisform.ambildataF
16- Pros".r car( &$(8
thisform.t0tcari.-isibleC.t.
thisform.t0tcari.setfocusF
*7- Pros".r St Foc.s t:tcar(
if .not. emptyFthisform.t0tcari.-alue
lacakCthisform.t0tcari.-alue
select "ns
locate for upperFalltrimFsubstrF"enis,1,lenF"enisCupperFalltrimFlacak
if foundF
thisform.ambildataF
set filter to upperFalltrimFsubstrF"enis,1,lenFlacakCupperFalltrimFlacak
thisform.grid1.refreshF
else
messagebo0FDData tidak adaLtidak ditemukan..GD,5H<$,D3nformasiD
endif
thisform.t0tcari.-isibleC.f.
endif
thisform.t0tcari.-alueCDD
*1- Pros".r K$.ar &$(8
select "enis
set filter to
if deleteF
pack
endif
thisform.releaseF
0. FORM ENTRY BARANG
!rosedureLcode form barang pada dasarnya sama dengan pembuanatan form yang
lainnya , hanya ob"ek yang digunakan lebih banyak. Desaignlah formdata "enis
barang seperti gambar diba%ah ini atau menurut kreati-itas anda masing Kmasing.
Gambar 4.% Tampilan Form $arang
A. PROPERTI OB%E&T
Nama
Ob'ct
Pro!rt(s N($a(
Form Caption
(ame
2uto Center
#D3Form
Sho%4indo%s
4indo%state
!engolahan Data Barang
Barang
.+.
.+.
1.3n +op.Le-el
5.(ormal
Label1 Caption 'ode Barang
Label& Caption Barang
Label, Caption 'ode )enis
Label$ Caption ;arga Beli
Label6 Caption ;arga )ual
Label< Caption )umlah
Label> Caption Stok #in
+e0t1 (ame
#a0length
t0t'odebrg
A
+e0t& (ame
#a0length
+0tnama
,5
Combo1 (ame
:o%Source
+0tkode"ns
)enis.kd"ns
+e0t, (ame t0thrg"ual
+e0t$ (ame t0thrgbeli
+e0t6 (ame +0t"umlah
+e0t< (ame t0tstokmin
Command1 (ame
Caption
Baru
89Baru
Cammand& (ame
Caption
Simpan
89Simpan
Command, (ame
Caption
Batal
89Batal
Command$ (ame
Caption
;apus
89;apus
Command6 (ame
Caption
:ubah
89:ubah
Command< (ame
Caption
2tas
=9
Command> (ame
Caption
#undur
9
Command> (ame
Caption
#a"u
@
Command? (ame
Caption
Ba%ah
@=
CommandA (ame
Caption
Cari
89Cari
Command15 (ame
Caption
'eluar
89keluar
1rid1 (ame
:ead/nly
:ecordSource
1rid1
.+.
barang
B. PENULISAN &ODE PROGRAM
Jntuk penulisan Code program data barang sama seperti code program form lainnya
yaitu kita menggunakan methode procedure
1- Pros".r Mat((s(a#
thisform.t0tkodebrg.enabledC.f.
thisform.t0tnama.enabledC.f.
thisform.t0tkd"ns.enabledC.f.
thisform.t0t"umlah.enabledC.f.
thisform.t0thrg"ual.enabledC.f.
thisform.t0thrgbeli.enabledC.f.
thisform.t0tstokmin.enabledC.f.
*- Pros".r +(".!(s(a#
thisform.t0tkodebrg.enabledC.t.
thisform.t0tnama.enabledC.t.
thisform.t0tkd"ns.enabledC.t.
thisform.t0t"umlah.enabledC.t.
thisform.t0thrg"ual.enabledC.t.
thisform.t0thrgbeli.enabledC.t.
thisform.t0tstokmin.enabledC.t.
/- Pros".r Mat(tombo$
thisform.baru.enabledC.f.
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
0- Pros".r +(".!tombo$
thisform.baru.enabledC.t.
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform.rubah.enabledC.t.
thisform.hapus.enabledC.t.
thisform.cari.enabledC.t.
thisform.keluar.enabledC.t.
thisform.ma"u.enabledC.t.
thisform.mundur.enabledC.t.
1- Pros".r Brs(2$a;ar
thisform.t0tkodebrg.-alueCD D
thisform.t0tkd"ns.-alueCD D
thisform.t0tnama.-alueCD D
thisform.t0tkd"ns.-alueCD D
thisform.t0t"umlah.-alueC5
thisform.t0thrg"ual.-alueC5
thisform.t0thrgbeli.-alueC5
thisform.t0tstokmin.-alueC5
3- Pros".r amb($"ata
select barang
thisform.t0tkdkodebrg.-alueCkodebrg
thisform.t0tnama.-alueCbarang
thisform.t0tkd"ns.-alueCkd"ns
thisform.t0t"umlah.-alueC"mlstok
thisform.t0thrg"ual.-alueChrg"ual
thisform.t0thrgbeli.-alueChrgbeli
thisform.t0tstokmin.-alueCstokmin
4- Pros".r No
select barang
set order to kodebrg
goto bottom
if kodebrgCspaceFA
mkodebrgCD'M.555551D
else
mnoC-alFrightFkodebrg,<H1
do case
case mno915
mkodebrgCD'M.55555DHltrimFstrFmno
case mno9155
mkodebrgCD'M.5555DHltrimFstrFmno
case mno91555
mkodebrgCD'M.555DHltrimFstrFmno
case mno915555
mkodebrgCD'M.55DHltrimFstrFmno
case mno9155555
mkodebrgCD'M.5DHltrimFstrFmno
case mno91555555
mkodebrgCD'M.DHltrimFstrFmno
endcase
endif
thisform.tX+'odebrg.-alueCmkodebrg
5- Pros".r S(m!a#"ata
replace 'odebrg %ith thisform.t0tkodebrg.-alue
replace barang %ith thisform.t0tnama.-alue
replace 'd"ns %ith thisform.t0tkd"ns.-alue
replace hrg"ual %ith thisform.t0thrg"ual.-alue
replace hrgbeli %ith thisform.t0thrgbeli.-alue
replace "mlstok %ith thisform.t0tstokmin.-alue
replace stokmin %ith thisform.t0tstokmin.-alue
6- Pros".r Act() Form
set delete on
select barang
set order to k5debrg
count to ada
if ada @5
goto top
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matitombolF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.t0tcari.-isibleC.f.
17- Pros".r Tombo$ Bar. &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.bersihlayarF
thisform.matitombolF
thisform.batal.enabledC.t.
thisform.simpan.enabledC.t.
+hisform.noF
thisform. t0tkodebrg.setfocusF
11- Pros".r S(m!a# &$(8
set delete off
if emptyFthisform. t0tkodebrg.-alue
messagebo0FD'ode Barang ;arus Di3si GD,5H<$,D3nformasiD
else
-kdbrgCthisform. t0tkodebrg.-alue
select barang
set order to kodebrg
set filter to
seek -kdbrg
if foundF
pCmessagebo0FDData Sudah 2da,2pakah #au Di!erbaharui ID,$H<$,D3nfoD
if pC<
recall
thisform.simpandataF
endif
else
append blank
thisform.simpandataF
endif
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
set delete on
thisform.matiisianF
thisform. grid1.refreshF
endif
1*- Pros".r Bata$ &$(8
thisform.bersihlayarF
select barang
set order to kodebrg
count to ada
if ada @ 5
goto posisi
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matiisianF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.t0tcari.-isibleC.f.
1/- Pros".r R.ba2 &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.matitombolF
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform. t0tkodebrg.enabledC.f.
thisform. t0tbarang.setfocusF
10- Pros".r +a!.s &$(8
pCmessagebo0FDBenar #au D3 ;apusID,$H,&,D3nfoD
if pC<
delete
if eofF
goto bottom
else
skip
endif
thisform.ambildataF
thisform.grid1.refreshF
thisform.grid1.setfocusF
endif
11- Pros".r Atas &$(8
select barang
goto top
thisform.ambildataF
13- Pros".r M.#".r &$(8
select barang
if bofF
messagebo0FD!osisi sudah di a%al file...GD,5H<$,D3nformasiD
goto top
else
skip .1
endif
thisform.ambildataF
14- Pros".r Ma'. &$(8
select barang
if .not. eofF
skip
else
messagebo0FD!osisi sudah di akhir file...GD,5H<$,D3nformasiD
goto bottom
endif
thisform.ambildataF
15- Pros".r Ba9a2 &$(8
select barang
goto bottom
thisform.ambildataF
16- Pros".r car( &$(8
thisform.t0tcari.-isibleC.t.
thisform.t0tcari.setfocusF
*7- Pros".r St Foc.s t:tcar(
if .not. emptyFthisform.t0tcari.-alue
lacakCthisform.t0tcari.-alue
select barang
locate for upperFalltrimFsubstrFbarang,1,lenFbarangCupperFalltrimFlacak
if foundF
thisform.ambildataF
set filter to upperFalltrimFsubstrFbarang,1,lenFlacakCupperFalltrimFlacak
thisform.grid1.refreshF
else
messagebo0FDData tidak adaLtidak ditemukan..GD,5H<$,D3nformasiD
endif
thisform.t0tcari.-isibleC.f.
endif
thisform.t0tcari.-alueCDD
*1- Pros".r K$.ar &$(8
select barang
set filter to
if deleteF
pack
endif
thisform.releaseF
1. FORM BARANG MASUK
Jntuk memulai membuat Form Barang #asuk langkah yang dilakukan sama seperti
membuat Form lainnya. Desainglah form hingga seperti gambar diba%ah ini B
Gambar 4.& Tampilan Form $arang Masuk
A. PROPERTI OB%E&T
Nama
Ob'ct
Pro!rt(s N($a(
Form Caption
(ame
2uto Center
#D3Form
Sho%4indo%s
4indo%state
+ransaksi Barang #asuk
#asuk
.+.
.+.
1.3n +op.Le-el
5.(ormal
Label1 Caption (o (ota #asuk
Label& Caption +anggal
Label, Caption 'ode !etugas
Label$ Caption 'ode Supplier
+e0t1 (ame
#a0length
t0tnonmsk
15
+e0t& (ame
#a0length
+0ttglmsk
?
Combo1 (ame +0tkdptgs
Combo& (ame t0tkdsup
+e0t$ (ame t0tnmsup
+e0t, (ame +0tnmptgs
+e0t6 (ame
#a0length
+0tcari
&5
Command1 (ame
Caption
Baru
89Baru
Command& (ame
Caption
Simpan
89Simpan
Command, (ame
Caption
Batal
89Batal
Command$ (ame
Caption
:ubah
89:ubah
Command6 (ame
Caption
;apus
89;apus
Command< (ame
Caption
2tas
=9
Cammand> (ame
Caption
#undur
9
Command? (ame
Caption
#a"u
@
CommandA (ame
Caption
Ba%ah
@=
Command15 (ame
Caption
Cari
89Cari
1rid1 (ame
:ead/nly
:ecordSource
1rid1
.+.
rincimsk
B. PENULISAN &ODE PROGRAM
Jntuk penulisan Code program sama seperti code program form yang lainnya, namun
pada form ini kita menggunakan metode procedure
1- Pros".r Mat((s(a#
thisform.t0ttglmsk.enabledC.f.
thisform.t0tkdptgs.enabledC.f.
thisform.t0tnmptgs.enabledC.f.
thisform.t0tkdsup.enabledC.f.
thisform.t0tnmsup.enabledC.f.
*- Pros".r +(".!(s(a#
thisform.t0ttglmsk.enabledC.t.
thisform.t0tkdptgs.enabledC.t.
thisform.t0tnmptgs.enabledC.t.
thisform.t0tkdsup.enabledC.t.
thisform.t0tnmsup.enabledC.t.
/- Pros".r Mat(tombo$
thisform.baru.enabledC.f.
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.rubah.enabledC.f.
thisform.hapus.enabledC.f.
thisform.cari.enabledC.f.
thisform.keluar.enabledC.f.
thisform.ma"u.enabledC.f.
thisform.mundur.enabledC.f.
0- Pros".r +(".!tombo$
thisform.baru.enabledC.t.
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform.rubah.enabledC.t.
thisform.hapus.enabledC.t.
thisform.cari.enabledC.t.
thisform.keluar.enabledC.t.
thisform.ma"u.enabledC.t.
thisform.mundur.enabledC.t.
1- Pros".r Brs(2$a;ar
thisform.t0tnonmsk.-alueCD D
thisform. t0ttglmsk.-alueCctodFD..L..L..D
thisform.t0tkdptgs.-alueCD D
thisform. t0tnmptgs.-alueCD D
thisform.t0tkdsup.-alueCD D
thisform.t0tnmsup.-alueCD D
3- Pros".r amb($"ata
select petugas
set filter to
set order to kdptgs
mkdptgsCthisform.t0tkdptgs.-alue
seek mkdptgs
if foundF
thisform.t0tnmptgs.-alueCnmptgs
else
thisform.t0tnmptgs.-alueCDD
endif
select suplier
set filter to
set order to kdsup
mkdsupCthisform.t0tkdsup.-alue
seek mkdsup
if foundF
thisform.t0tnmsup.-alueCnmsup
else
thisform.t0tnmsup.-alueCDD
endif
select masuk
thisform.t0tnonmsk.-alueCnonmsk
thisform.t0ttglmsk.-alueCtglmsk
thisform.t0tkdptgs.-alueCkd!+1S
thisform.t0tkdsup.-alueCkdsup
4- Pros".r No
select masuk
set order to nonmsk
goto bottom
if nonmskCspaceF15
mnonmskCD#S'.555551D
else
mnoC-alFrightFnonmsk,<H1
do case
case mno915
mnonmskCD#S'.55555DHltrimFstrFmno
case mno9155
mnonmskCD#S'.5555DHltrimFstrFmno
case mno91555
mnonmskCDmsk.555DHltrimFstrFmno
case mno915555
mnonmskCD#S'.55DHltrimFstrFmno
case mno9155555
mnonmskCD#S'.5DHltrimFstrFmno
case mno91555555
mnonmskCD#S'.DHltrimFstrFmno
endcase
endif
thisform.tX+nonmsk.-alueCmnonmsk
5- Pros".r S(m!a#"ata
replace nonmsk %ith thisform.t0tnonmsk.-alue
replace kdptgs %ith thisform.t0tkdptgs.-alue
replace tglmsk %ith thisform.t0ttglmsk.-alue
replace kdsup %ith thisform.t0tkdsup.-alue
6- Pros".r Act() Form
set delete on
select masuk
set order to nonmsk
count to ada
if ada @5
goto top
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matitombolF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.t0tcari.-isibleC.f.
17- Pros".r Tombo$ Bar. &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.bersihlayarF
thisform.matitombolF
thisform.batal.enabledC.t.
thisform.simpan.enabledC.t.
thisform.noF
thisform.t0ttglmsk.-alueCdateF
thisform. t0tkdptgs.setfocusF
11- Pros".r S(m!a# &$(8
set delete off
if emptyFthisform. t0tnonmsk.-alue
messagebo0FDno nota masuk harus diisi GD,5H<$,DinformasiD
else
-nonmskCthisform. t0tnonmsk.-alue
select masuk
set order to nonmsk
set filter to
seek -nonmsk
if foundF
pCmessagebo0FDdata sudah ada,apakah mau diperbaharui ID,$H<$,DinfoD
if pC<
recall
thisform.simpandataF
endif
else
append blank
thisform.simpandataF
endif
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
set delete on
thisform.matiisianF
thisform. grid1.refreshF
endif
NbersihC&
mnonmskCthisform.t0tnonmsk.-alue
mtglmskCthisform.t0ttglmsk.-alue
mkdptgsCthisform.t0tkdptgs.-alue
mkdsupCthisform.t0tkdsup.-alue
if emptyFmnonmsk.or. emptyFmtglmsk
messagebo0FDdata harus diisi GD,5H<$,DinfoD
else
do form rincimasuk
endif
thisform.ambildataF
1*- Pros".r Bata$ &$(8
thisform.bersihlayarF
select masuk
set order to nonmsk
count to ada
if ada @ 5
goto +/!
thisform.ambildataF
thisform.hiduptombolF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
else
thisform.bersihlayarF
thisform.matiisianF
thisform.baru.enabledC.t.
thisform.keluar.enabledC.t.
endif
thisform.matiisianF
thisform.simpan.enabledC.f.
thisform.batal.enabledC.f.
thisform.t0tcari.-isibleC.f.

1/- Pros".r R.ba2 &$(8
posisiCrecnoF
thisform.hidupisianF
thisform.matitombolF
thisform.simpan.enabledC.t.
thisform.batal.enabledC.t.
thisform. t0tnonmsk.enabledC.f.
thisform. t0tt0tnmptgs.setfocusF
10- Pros".r +a!.s &$(8
tanyaCmessagebo0FDMakin menghapus data ini..GD,$H,&,D'onfirmasiD
if tanyaC<
select rincimsk
delete
cekCthisform.t0tnonmsk.-alue
select masuk
delete all for nonmskCcek
select rincimsk
endif
thisform.bersihlayarF
if .not. eof
skip
if eofF
goto bottom
endif
else
goto bottom
endif
thisform.grid1.refreshF
thisform.grid1.setfocusF
thisform.grid&.refreshF
thisform.ambildataF
11- Pros".r Atas &$(8
select masuk
goto top
thisform.ambildataF
13- Pros".r M.#".r &$(8
select masuk
if bofF
messagebo0FD!osisi sudah di a%al file...GD,5H<$,D3nformasiD
goto top
else
skip .1
endif
thisform.ambildataF
14- Pros".r Ma'. &$(8
select masuk
if .not. eofF
skip
else
messagebo0FD!osisi sudah di akhir file...GD,5H<$,D3nformasiD
goto bottom
endif
thisform.ambildataF
15- Pros".r Ba9a2 &$(8
select masuk
goto bottom
thisform.ambildataF
16- Pros".r car( &$(8
thisform.t0tcari.-isibleC.t.
thisform.t0tcari.setfocusF
*7- Pros".r St Foc.s t:tcar(
if .not. emptyFthisform.t0tcari.-alue
lacakCthisform.t0tcari.-alue
select masuk
locate for upperFalltrimFsubstrFnonmsk,1,lenFnonmskCupperFalltrimFlacak
if foundF
thisform.ambildataF
set filter to upperFalltrimFsubstrFnonmsk,1,lenFlacakCupperFalltrimFlacak
thisform.grid1.refreshF
else
messagebo0FDData tidak adaLtidak ditemukan..GD,5H<$,D3nformasiD
endif
thisform.t0tcari.-isibleC.f.
endif
thisform.t0tcari.-alueCDD
*1- Pros".r K$.ar &$(8
select masuk
set filter to
if deleteF
pack
endif
thisform.releaseF
3. FORM BARANG RIN&I BARANG MASUK
Jntuk memulai membuat Form :inci Barang #asuk langkah yang dilakukan sama
seperti membuat Form lainnya. Desainglah form hingga seperti gambar diba%ah ini B
Gambar 4.' Tampilan Form (inci $arang Masuk
A. PROPERTI OB%E&T
Nama
Ob'ct
Pro!rt(s N($a(
Form Caption
(ame
2uto Center
#D3Form
Sho%4indo%s
4indo%state
+ransaksi :inci Barang #asuk
:inci Barang #asuk
.+.
.+.
1.3n +op.Le-el
5.(ormal
Label1 Caption (o (ota #asuk
Combo1 Caption 'ode Barang
Label, Caption ;arga
Label$ Caption )umlah
+e0t1 (ame
#a0length
t0tnonmsk
15
Combo1 (ame +0t'dbrg
+e0t& (ame
#a0length
+0thrgmsk
15
+e0t, (ame
#a0length
+0t"umlah
15
+e0t$ (ame +0tnmbarang
+e0t6 (ame
#a0length
+0tcari
15
Command1 (ame
Caption
Baru
89Baru
Command& (ame
Caption
Simpan
89Simpan
Command, (ame
Caption
Batal
89Batal
Command$ (ame
Caption
:ubah
89:ubah
Command6 (ame
Caption
;apus
89;apus
Command< (ame
Caption
2tas
=9
Cammand> (ame
Caption
#undur
9
Command? (ame
Caption
#a"u
@
CommandA (ame
Caption
Ba%ah
@=
Command15 (ame
Caption
Cari
89Cari
1rid1 (ame
:ead/nly
:ecordSource
1rid1
.+.
rincimsk
B. PENULISAN &ODE PROGRAM
Jntuk penulisan Code program sama seperti code program form yang lainnya, namun
pada form ini kita menggunakan metode procedure
1- Pros".r Act() Form
select barang
thisform.t0tnonmsk.-alueCmnonmsk
thisform.t0thrgmsk.-alueC5
thisform.t0t"mlmsk.-alueC5
*- Pros".r Form I#(t
public mnonmsk,mhrgmsk,mkdkayu,mNtymsk
balikC5
/- Pros".r O8 &$(8
balikC1
mkdbrgCthisform.t0tkdbrg.-alue
mnonmskCthisform.t0tnonmsk.-alue
m"mlmskCthisform.t0t"mlmsk.-alue
mhrgmskCthisform.t0thrgmsk.-alue
select barang
set filter to
seek mkodebrg
if foundF
replace "mlstok %ith "mlstok H m"mlmsk
replace hrg"ual %ith mhrgmsk
endif
select rincimsk
set filter to
set order to nonmsk
locate for nonmskCmnonmsk .and. kodebrgCmkdbrg
if foundF
replace nonmsk %ith mnonmsk
replace "mlmsk %ith m"mlmsk
replace kodebrg %ith mkdbrg
replace hrgmsk %ith mhrgmsk
else
append blank
replace nonmsk %ith mnonmsk
replace "mlmsk %ith m"mlmsk
replace kodebrg %ith mkdbrg
replace hrgmsk %ith mhrgmsk
endif
thisform.t0thrgmsk.-alueC5
thisform.t0t"mlmsk.-alueC5
thisform.t0tkdbrg.-alueCDD
thisform.t0tkdbrg.setfocusF
0- Pros".r 8$.ar &$(8
select rincimsk
set filter to
thisform.releaseF
1- Pros".r t:t8o"br< Lost Foc.s &$(8
mkdbrgCthisform.t0tkdbrg.-alue
select barang
set filter to
set order to kodebrg
seek mkdbrg
if foundF
thisform.t0tnmbarang.-alueCnmbarang
thisform.t0thrgmsk.-alueChrgbeli
else
thisform.t0tnmbarang.-alueCDD
thisform.t0thrgmsk.-alueC5
endif