Anda di halaman 1dari 58

BSI Salemba 22

MICROSOFT VISUAL FOXPRO 6.0


1.1. MENGENAL LINGKUNGAN Ms. Vs!al F"#$%"
Foxpro adalah sebuah Sistem Database Manajemen (Database Manajement
System/&MBS) elektronik, yang berfungsi untuk mengumpulkan, mengambil dan
menampilkan data. isual Foxpro adalah bahasa pemrograman !isual yang berorientasi pada
obyek (Obyek Oriented Programming'OOP) dan juga sebagai Sistem Manajemen Database
"elasional (R&MS/Sistem #asis Data).
P%"(e)* Ma+a(e% $ %ntuk mengatur pengembangan, integrasi dan pembuatan aplikasi.
&ang dinamakan proje't adalah kumpulan file, data, dokumen dan
obyek yang digunakan dalam isual Foxpro (.) dan mempunyai
ekstensi .P,X. P%"(e)* Ma+a(e% memudahkan pemakai untuk
mengatur dan mengorganisasikan database, tabel, form, laporan dan
*uery selama pembuatan aplikasi.
&a*abase $ +umpulan dari tabel, !ie,, dan 'onne'tion. File database
berekstensi .&BC
Tabel $ -empat penyimpanan data (berekstensi .&BF)
Ve- $ -abel yang dibentuk dengan mengambil sebagian/seluruh field dari
satu/beberapa tabel/!ie, lain.
C"++e)*"+ $ .enghubung antara tabel dengan data dari sumber lain yang
formatnya berbeda (seperti $ MS. /''es, 0ra'le, S12.3x'el,
.aradox, dll).
-abel pada isual Foxpro dibedakan menjadi dua ma'am $
4. -abel yang menjadi bagian suatu database
5. -abel yang tidak menjadi bagian dari suatu database (tabel bebas).
Menu bar -ool bar
4
BSI Salemba 22
6ommand ,indo,
-ampilan pada a,al pembukaan Mi'rosoft isual Foxpro$
o -itle bar (#aris judul)
o Menu bar (baris menu)
o -oolbar
o 6ommand ,indo, ( jendela untuk memberikan instruksi se'ara langsung, seperti
melalu menu yang telah tersedia)
o %ntuk mengaktifkannya klik 7indo,s, klik 'ommand ,indo,s, 'trl8F5
o Status bar
1.2. POINTER
. digunakan untuk menampilkan pada layar
misal $ 9:2;2;:
.&a*e/0 digunakan untuk menampilkan tanggal pada sistem
.Tme/0 digunakan untuk menampilkan ,aktu pada sistem
2angkah<langkah dalam membuat tabel bebas dari jendela 'ommand $
Membuat dire'tory dengan MD (Make Dire'tory)
M& l"1as23%4e +ama25"l3e%
Misal $ MD 6$=45)>?@AB= 2atihan
Mengaktifkan folder yang telah dibuat dengan 6D
C& l"1as23%4e +ama25"l3e%
Misal $ 6D 6$=45)>?@AB=2atihan
Membuat tabel
CREATE +ama2*abel a*a! CREA +ama2*abel
Misal $ 6"3/-3 Mahasis,a
5
BSI Salemba 22
2alu isi nama field, tipe, ,idth dan index
Cama field -ipe 7idth Desimal ;ndex ;ndexes
nim 6hara'ter @ /s'ending reguler
nama 6hara'ter 5)
alamat 6hara'ter 5?
-ampilan -able Designer Mahasis,a.dbf
2alu isi file dengan ? re'ord
Cim Cama alamat
45)>?@AB Sandra 63CD+/"3CD
44)>(@A? Dendy +"/M/- E/-;
4>)>F@A( E0 #/G/";
45)>(F@) ;CD/G S/23M#/
Simpan dengan C*%l 6 7
Ca*a*a+ !+*!1 +ama 5el3
Maksimal 4) karakter
Dia,ali dengan huruf atau garis ba,ah(H)
Selanjutnya dapat berupa huruf,angka atau garis ba,ah
-ampilkan tabel
BRO7SE
LIST dengan nomor re'ord (menampilkan data dalam bentuk tabel)
LIST OFF tanpa nomor re'ord
LIST FIEL&S +ama25el3 menampilkan re'ord sesuai nama field yang
diinginkan.
>
BSI Salemba 22
Misal $ 2;S- F;32DS nama,alamat
Membersihkan layar
6lear
-ambah re'ord
APPEN& atau APPE
-ambahkan 4 re'ord, bro,se
Gapus re'ord
&ELETE 8s)"$e9 +"m"%2%e)"%3
+et $ s'ope $ /ll $ Semua "e'ord
Misal $ D323-3 /22
Cext $ dari re'ord yang aktif sampai re'ord yang ke C
Misal $ D323-3 C3I- "360"D B
"est $ Dari re'ord yang aktif sampai re'ord yang
terakhir
Misal $ D323-3 "3S-
"e'ord$ "e'ord ke C
Misal $D323-3 "360"D 5
6ontoh$ menghapus re'ord ke >
D323 "360 > memberikan tanda pada re'ord yang akan dihapus)
Se* 3ele "+ /me+:a1*51a+ $e+:;a$!sa+ %e)"%30<BRO7
Se* 3ele "55 /me+"+a1*51a+ $e+:;a$!sa+ %e)"%30<BRO7
Mengaktifkan kembali re'ord yang sudah dihapus
RECALL 8s)"$e9 +"m"%2%e)"%3
Misal $ "36/22 "360"D >
Menghilangkan re'ord yang sudah dihapus se'ara permanen
PACK
Mengetahui re'ord yang sedang aktif
RECNO/0
Misal $ %se mahasis,a
D0 5
9"36C0()
D;S.2/&
.indah dari re'ord yang aktif ke re'ord berikutnya
SKIP
Misal $ D0 -0.
B
BSI Salemba 22
S+;.
9"36C0()
S+;. 5
9"36C0()
S+;.<4
9"36C0()
Meletakkan pointer ke re'ord yang di'ari
LOCATE FOR <NAMA_FIELD>=<ISI_FIELD>
6ontoh $ LOCATE FOR namaJ:Sandra:
Mengosongkan isi tabel se'ara permanent
ZAP
Modifikasi tabel/mengubah struktur tabel
MO&IF= STRUCTURE atau MO&I STRU
-ambahkan field jurusan dengan type 'hara'ter dan ,idth 5?
Merubah data/isi dari field
REPLACE +ama25el3 7IT> +ama23a*a2ba%!
Misal $ %S3 mahasis,a mengaktifkan tabel
D0 -0. mengaktifkan re'ord a,al
9nama,alamat menampilkan field nama dan alamat
"3.2/63 nama 7;-G KD/C;: merubah re'ord a,al dengan field nama
dengan nama D/C;
Fungsi iif()JJmenyeleksi data dengan kondisi tertentu
C"+*"; ? me+:s 5el3 (!%!sa+ be%3asa%1a+ 2 1a%a1*e% $e%*ama 3a% +m
Re$la)e all (!%!sa+ -*; 5 /LEFT /+m@20 <A11A@ A1"m$!*e%sas a1!+*a+sA@ 5
/LEFT /+m@20 <A12A@ Ama+a(eme+ +5"%ma*1aA @A*e1+1 1"m$!*e%A00
Menutup tabel
620S3 -/#23
+eluar dari !isual foxpro
620S3 /22
1%;-
FILE IN&EX &AN PENCARIAN &ATA
Fungsi utama dari File index adalah menata urutan<urutan data atau re'ord agar
mempermudah dalam pen'arian data.
Membuat index
?
BSI Salemba 22
%se mahasis,a
;ndex on nim to mahasis,a
Man'ari data berdasarkan index
Set order to tag nim
Seek K45)>?@AB:
9found()
1.B. BEKER,A &ENGAN FORM
Membuat form dengan 'ara mengetikkan perintah 'reate form Lnama form pada jendela
'ommand /tau dari klik menu FleCNe-CPl; F"%mC1l1 Ne- Fle
Ce, Form
Gamba%a+ *e+*a+: F"%m

(
/
D
BSI Salemba 22
+eterangan$
/. Eendela Form
#. Eendela Form 6ontrol (-ool #ox)
6. Eendela .roperties
D. Eendela 'ommand ,indo,
La*;a+
&es:+ 5"%m sbb?
Design form
-ampilan program
%bah properties
sbb$
NAMA OB,EK PROPERT= NILAI
2/#324 6/.-;0C 2/-;G/C #3"G;-%CD &%+
2/#325 6/.-;0C C;2/; 4
2/#32> 6/.-;0C C;2/; 5
2/#32B 6/.-;0C G/S;2
-3I-4 C/M3 -I-C;24
-3I-> C/M3 -I-C;25
-3I-> C/M3 -I-G/S;2
60MM/CD4 C/M3 6MD-/M#/G
6/.-;0C =M-/M#/G
60MM/CD5 C/M3 6MD+%"/CD
6/.-;0C =M+%"/CD
60MM/CD> C/M3 6MD+/2;
6/.-;0C =M+/2;
F
#
6
BSI Salemba 22

Kem!3a+ 1l1 3!a 1al $a3a se*a$ )"mma+3 b!**"+ )"+*";+Da ? )"mma+3 be%s;
Ls*+: $%":%am Da+: la+ sbb?
Ob(e)* ? )m3*amba; P%")e3!%e ? Cl)1
*;s5"%m.*#*;asl.4al!e<%"!+3/4al/*;s5"%m.*#*+l1.4al!e0 6 4al/*;s5"%m.*#*+l2.4al!e0@00
Ob(e)* ? )m31!%a+: P%")e3!%e ? Cl)1
*;s5"%m.*#*;asl.4al!e<%"!+3/4al/*;s5"%m.*#*+l1.4al!e0 E 4al/*;s5"%m.*#*+l2.4al!e0@00
Ob(e)* ? )m31al P%")e3!%e ? Cl)1
*;s5"%m.*#*;asl.4al!e<%"!+3/4al/*;s5"%m.*#*+l1.4al!e0 F 4al/*;s5"%m.*#*+l2.4al!e0@00
Ob(e)* ? )m3ba: P%")e3!%e ? Cl)1
*;s5"%m.*#*;asl.4al!e<%"!+3/4al/*;s5"%m.*#*+l1.4al!e0 ' 4al/*;s5"%m.*#*+l2.4al!e0@00
Ob(e)* ? )m3be%s;

P%")e3!%e ? Cl)1
*;s5"%m.*#*+l1.4al!e<GG *;s5"%m.*#*+l2.4al!e<GG
*;s5"%m.*#*;asl.4al!e<GG *;s5"%m.*#*+l1.se*5")!s/0
60MM/CDB C/M3 6MD#/D;
6/.-;0C HI#/D;
60MM/CD? C/M3 6MD#3"S;G
6/.-;0C =M#3"S;G
60MM/CD( C/M3 6MD+32%/"
6/.-;0C =,M+32%/"
@
BSI Salemba 22
untuk menjalankan program,klik menu program N Do atau klik i'on /CTRL6E0.
+emudian padasaat dijalankan !isual foxpro akan menampilkan konfirmasi sbb$ Kl1 =es
untuk menyimpannya
PERCABANGAN
1. I5 Ma(em!1
#entuk umum $
;F kondisi 4
.erintah 4
3lse
;F kondisi 5
.erintah 5
3lse
.erintah n
3ndif
3ndif
2. &" Case
#entuk umum $
Do 6ase
6ase kondisi 4
.ernyataan4
L6ase kondisi 5
.ernyataan 5O
L0ther,ise
.ernyataan nO
A
BSI Salemba 22
3nd'ase
La*;a+ 1 ?
+etentuan soal $
Uba;la; $%"$e%*es sbb?
Ls*+: $%":%am
Ob(e)* ? CM&PROSES P%")e3!%e ? CLICK
MENGGUNAKAN IF MA,EMUK MENGGUNAKAN &O CASE
C;2/;J/2(-G;SF0"M.-I-C;2/;./2%3)
;F C;2/;NJA)
+3-3"/CD/CJP/P
32S3
C;2/;J/2(-G;SF0"M.-I-C;2/;./2%3)
D0 6/S3
6/S3 C;2/;NJA)
+3-3"/CD/CJ:/:
Nla Ke*e%a+:a+
C<J0 A
C<K0 B
C<60 C
C<L0 &
IL0 E
NAMA OB,EK PROPERT= NILAI
2/#324 6/.-;0C ."0D"/M G/S;2 -3S
2/#325 6/.-;0C C;2/;
2/#32> 6/.-;0C +3-3"/CD/C
-3I-4 C/M3 -I-C;2/;
-3I-5 C/M3 -I-+3-3"/CD/C
60MM/CD4 C/M3 6MD."0S3S
6/.-;0C =M."0S3S
60MM/CD5 C/M3 6MD2/D;
6/.-;0C =M2/D;
60MM/CD> C/M3 6MDS323S/;
6/.-;0C =MS323S/;
4)
BSI Salemba 22
;F C;2/;NJF)
+3-3"/CD/CJP#P
32S3
;F C;2/;NJ()
+3-3"/CD/CJP6P
32S3
;F C;2/;NJ?)
+3-3"/CD/CJPDP
32S3
+3-3"/CD/CJP3P
3CD;F
3CD;F
3CD;F
3CD;F
-G;SF0"M.-I-+3-3"/CD/C./2%3J+3-3"/CD/C
6/S3 C;2/;NJF)
+3-3"/CD/CJ:#:
6/S3 C;2/;NJ()
+3-3"/CD/CJ:6:
6/S3 C;2/;NJ?)
+3-3"/CD/CJ:D:
0-G3"7;S3
+3-3"/CD/CJ:3:
3CD6/S3
Ob(e)* ? CM&LAGI P%")e3!%e ? CLICK
-G;SF0"M.-I-C;2/;./2%3JPP
-G;SF0"M.-I-+3-3"/CD/C./2%3JPP
-G;SF0"M.-I-C;2/;.S3-F06%S()
Ob(e)* ? CM&KELUAR P%")e3!%e ? CLICK
-G;SF0"M."323/S3
MO&UL B
KO&E PROGRAM
&a*a E+4%"+me+*
/dapun langkah<langkah membuka D3 $
a. buat form baru
b. klik kanan pada form, lalu mun'ul menu pop up, pilih Data 3n!ironment
44
BSI Salemba 22
'. pada jendela Add Table or Vie terdapat > 'ommand button, Add! Clo"e dan O#$er! 5
option yaitu Table" dan Vie"
d. Eika tabel yang ingin anda ambil berada dalam suatu database, seperti gambar diatas
yaitu database Datauas, maka pilih database lalu pada Table" in Da#aba"e, pilih
tabel yang diinginkan (misal mahasi,a). Dan klik Add, lalu Clo"e.
e. -api jika tabel tidak dalam database atau tabel bebas, maka pilih O#$er, dan 'ari
tempat penyimpanan tabel anda. .ilih tabel, klik 0+ dan 6lose.
f. Setelah tabel mun'ul pada jendela D3,
g. Drag gambar lalu tempatkan pada form
La*;a+ 2 Data 3n!ironment $
4. #uat .roje't dengan nama $ Ka+*"%.$(#
5. #uat Database dengan nama $ Pe:a-a.3b)
>. #uat tabel dengan nama $ &a*a Ga(.3b5
NAME T=PE 7I&T> &ECIMAL IN&EX
Cip 6hara'ter ? .rimary
CmHpega,ai 6hara'ter 5)
/lamat 6hara'ter >)
45
BSI Salemba 22
-glHlhr Date @
Dapok Cumeri' 4) )
-unjangan Cumeri' 4) )
-otal Cumeri' 4) )
K%ntuk field total jangan di input gunakan rumus dalam form:
G!+a1a+ &a*a E+4%"+me+* M
R!m!s ? T"*al<:a$"16*!+(a+:a+
0bjek dan properti yang digunakan dan dirubah $
NAMA OB,EK PROPERT= NILAI
60MM/CD4 C/M3
6/.-;0C
6MD-0.
=M-0.
60MM/CD5 C/M3
6/.-;0C
6MD#/6+
=M#/6+
60MM/CD> C/M3
6/.-;0C
6MDC3I-
=MC3I-
60MM/CDB C/M3
6/.-;0C
6MD#0--0M
=M#0--0M
NAMA OB,EK PROPERT= NILAI
60MM/CD? C/M3
6/.-;0C
6MD-/M#/G
=M-/M#/G
60MM/CD( C/M3
6/.-;0C
6MDG/.%S
=MG/.%S
60MM/CDF C/M3
6/.-;0C
6MD2;G/-
=M2;G/-
60MM/CD@ C/M3
6/.-;0C
6MD+32%/"
=M+32%/"
4>
BSI Salemba 22
)m3*"$ )l)1
go top
thisform.refresh
)m3ba)1 )l)1
skip<4
if bof() then
go top
messagebox(Pini re'ord
pertamaQP,B@,PperhatianP)
endif
thisform.refresh
)m3+e#* )l)1
skip
if eof() then
go bottom
messagebox(Pini re'ord
terakhirQP,B@,PperhatianP)
endif
thisform.refresh
)m3b"**"m )l)1
go bottom
thisform.refresh
)m3l;a* )l)1
bro,se
)m3*amba; )l)1
appen blank
thisform.refresh
thisform.txtnip.setfo'us
)m3;a$!s )l)1
if re''ount()MJ)
return
endif
pesanJmessagebox(Pdata akan
dihapusP,>584,PinfoP)
if pesanJ4
dele
pa'k
endif
thisform.refresh
*#**!+(a+:a+ l"s*5")!s
gapokJthisform.txtgapok.!alue
tunjJthisform.txttunjangan.!alue
thisform.txttotal.!alueJgapok8tunj
)m31el!a% )l)1
-hisform.release
La*;a+ B
1. #uat proje't dengan nama $ Kam$!s.$(#
2. #uat database dengan nama $ Ma;ass-a.3b)
B. #uat tabel dengan nama $ &a*a Nla.3b5
NAME T=PE 7I&T> &ECIMAL IN&EX
Cim 6hara'ter ?
.rimary
Cama 6hara'ter 5)
+elas 6hara'ter >)
/bsen Date @
-ugas Cumeri' > )
4B
BSI Salemba 22
%ts Cumeri' > )
%as Cumeri' > )
"ata<rata Cumeri' > )
Drade 6hara'ter (
+et 6hara'ter (
K%ntuk field "ata<rata,grade dan ket jangan di input,gunakan rumus dan per'abangan dalam
form:
KETENTUAN
,1a %a*aE%a*a C<J0 ma1a :%a3e<AAA 3a+ Ke*e%a+:a+ <AL!l!sA
,1a %a*aE%a*a C<KL ma1a :%a3e<ABA 3a+ Ke*e%a+:a+ <AL!l!sA
,1a %a*aE%a*a C<6L ma1a :%a3e<ACA 3a+ Ke*e%a+:a+ <AL!l!sA
Sela+ *! :%a3e<A&A 3a+ Ke*e%a+:a+ <AGa:alA
R!m!s ? Ra*a< /10NFabse+06/20NF*!:as06/B0NF!*s06/O0NF!as0
0bjek dan properti yang digunakan dan dirubah $
NAMA OB,EK PROPERT= NILAI
D";D4
602%MC4 60C-"02S0%"63 M/G/S;S7/.C;M
G3/D3"4 6/.-;0C C;M
602%MC5 60C-"02S0%"63 M/G/S;S7/.C/M/
G3/D3"5 6/.-;0C C/M/
602%MC> 60C-"02S0%"63 M/G/S;S7/.+32/S
G3/D3"> 6/.-;0C +32/S
602%MCB 60C-"02S0%"63 M/G/S;S7/./#S3C
G3/D3"B 6/.-;0C /#S3C
602%MC? 60C-"02S0%"63 M/G/S;S7/.-%D/S
G3/D3"? 6/.-;0C -%D/S
602%MC( 60C-"02S0%"63 M/G/S;S7/.%-S
4?
BSI Salemba 22
G3/D3"( 6/.-;0C %-S
602%MCF 60C-"02S0%"63 M/G/S;S7/.%/S
G3/D3"F 6/.-;0C %/S
602%MC@ 60C-"02S0%"63 M/G/S;S7/."/-/
G3/D3"@ 6/.-;0C "/-/
602%MCA 60C-"02S0%"63 M/G/S;S7/.D"/D3
G3/D3"A 6/.-;0C D"/D3
602%MC4) 60C-"02S0%"63 M/G/S;S7/.+3-
G3/D3"4) 6/.-;0C +3-
60MM/CD4 C/M3
6/.-;0C
6MD-0.
=M-0.
60MM/CD5 C/M3
6/.-;0C
6MD#/6+
=M#/6+
60MM/CD> C/M3
6/.-;0C
6MDC3I-
=MC3I-
60MM/CDB C/M3
6/.-;0C
6MD#0--0M
=M#0--0M
60MM/CD? C/M3
6/.-;0C
6MD-/M#/G
=M-/M#/G
60MM/CD( C/M3
6/.-;0C
6MDG/.%S
=MG/.%S
60MM/CDF C/M3
6/.-;0C
6MD2;G/-
=M2;G/-
60MM/CD@ C/M3
6/.-;0C
6MD+32%/"
=M+32%/"

)m3*"$ )l)1
go top
thisform.refresh
)m3ba)1 )l)1
skip<4
if bof() then
go top
messagebox(Pini re'ord
pertamaQP,B@,PperhatianP)
endif
thisform.refresh
)m3+e#* )l)1
skip
if eof() then
go bottom
messagebox(Pini re'ord
terakhirQP,B@,PperhatianP)
endif
thisform.refresh
)m3b"**"m )l)1
)m3*amba; )l)1
appen blank
thisform.refresh
thisform.txtnim.setfo'us
)m3l;a* )l)1
bro,se
)m31el!a% )l)1
-hisform.release
T#*%a*a l"s*5")!s
aJthisform.txtabsen.!alue
bJthisform.txttugas.!alue
'Jthisform.txtuts.!alue
dJthisform.txtuas.!alue
thisform.txtrata.!alueJ(aR4)/4)))8(bR5)/4)))8
(bR>)/4)))8('RB)/4)))
rataJthisform.txtrata.!alue
if rata NJA)
thisform.txtgrade.!alueJP/P
4(
BSI Salemba 22
go bottom
thisform.refresh
)m3;a$!s )l)1
if re''ount()MJ)
return
endif
pesanJmessagebox(Pdata akan
dihapusP,>584,PinfoP)
if pesanJ4
dele
pa'k
endif
thisform.refresh
thisform.txtket.!alueJP2%2%SP
else
if rata NJF?
thisform.txtgrade.!alueJP#P
thisform.txtket.!alueJP2%2%SP
else
if rata NJ(?
thisform.txtgrade.!alueJP6P
thisform.txtket.!alueJP2%2%SP
3lse
thisform.txtgrade.!alueJPDP
thisform.txtket.!alueJPD/D/2
endif
endif
3ndif
-hisform.'mdtambah.setfo'us
MO&UL O
PRO,ECT MANA,ER
-ampilan $
4F
BSI Salemba 22
+eterangan $
/ll $ berisi semua komponen
Data $ berisi komponen yang berhubungan dengan data (database,*uery)
Do'uments $ berupa komponen dokumen (form, laporan, label)
6lasses $ berisi kelas, yang digunakan untuk membuat objek
6ode $ berkaitan dengan kode (program, aplikasi)
0ther $ berisi Menu, -ext File, 0ther Files
Membuat .roje't $
< File
< Ce, S atau C%ea*e P%"(e)* Nama5le
< .roje't
Disimpan dengan nama $
.roje't $ Sis,a ekstension $ .&BC File Database
Database $ Mahasis,a .&CX ;ndex database
.P,X File .roje't
.&BF File -abel
Membuat database dan tabel melalui .roje't Manajer $
+lik -ab Da#a pada .roje't Manajer
+lik Da#a lalu klik tombol Ne yang ada dibagian kanan.
+lik Ne Da#aba"e, isi file name lalu sa!e file kedalam folder masing<masing
+emudian klik tanda plus (8) pada item da#aba"e
+emudian klik pada item Tabel, klik tombol Ne
+lik Ne Table", simpan file tersebut.
La*;a+ O ?
#uatlah table dari .roje't Manajer dengan nama databasenya KULIA>
Cama tabel $ Ss-a
Came -ype 7idth ;ndex ;ndexes
Cim 'hara'ter @ /s'ending primary
Cama 6hara'ter 5)
+elas 6hara'ter ?
2alu isi sebanyak > re'ord $
Cim Cama +elas
44)B)444 &ulia Sari 4/
4@
BSI Salemba 22
45)B)55F #udi Santoso 46
4>)B)>B> Eoko Suharjo 4D
Cama tabel $ M*1!l
Came -ype 7idth ;ndex ;ndexes
+dmk 'hara'ter ? /s'ending primary
Mtkul 6hara'ter 5?
Sks Cumeri' 5
2alu isi sebanyak > re'ord $
+dmk mtkul sks
.)))4 .an'asila 5
2)))5 2ogika B
#)))B #ahasa ;nggris >
Cama tabel $ +la
Came -ype 7idth de'imal ;ndex
Cim 'hara'ter @ "eguler
+dmk 6hara'ter ? "eguler
Cilai Cumeri' > 5
2alu isi sebanyak > re'ord $
Cim kdmk Cilai
44)B)444 2)))5 (?
45)B)55F M)))? @?
4>)B)>B> .)))4 B)
Membuka tabel sis,a USE C?HTI BSI /C?0HSOLI>AHSIS7A.&BF
Membuka file index Cim SET OR&ER TO TAG NIM
Menutup table yang sedang terbuka CLOSE +ama*abel
Menutup file database yang terbuka CLOSE &ATABASE
Menutup file index yang sedang terbuka CLOSE IN&EX
4A
BSI Salemba 22
MO&UL L
PROCE&URE'MET>O& BARU
6ara membuat pro'edure baru $
+2;+ M3C% FORM
+;+ NE% MET&OD
+3-;+ C/M3 $ ATUROB,ECT
+2;+ ADD
+2;+ CLOSE
KETERANGAN PROCE&URE ?
LOA& $ .ada saat form tampil, perintah yang ada didalam pro'edure akan
dikerjakan
UNLOA& $ .ada saat form ditutup perintah yang ada didalam pro'edure akan
dikerjakan
LOSTFOCUS $ .ada saat kursor pindah ke obje't lain, perintah yang ada didalam
pro'edure akan dikerjakan
5)
BSI Salemba 22
ACTIVATE $ .ada saat form aktif, perintah yang ada didalam pro'edure akan
dikerjakan
CLICK $ .ada saat tombol diklik, perintah yang ada didalam pro'edure akan
dikerjakan
KE=PRESS $ .ada saat tombol keyboard ditekan, perintah yang ada didalam obje't
akan dikerjakan
GAMBAR KOTAK &IALOG
4(
>5 -/CD/ -/C&/
B@ -/CD/ S3"%
(B ;60C ;CF0"M/S;
La*;a+ L ?
6ontoh .rogram .engolahan data melalui form yang terdiri dari O$*"+ G%"!$@ Ls*@ Tme%@
C"mb"B"# menggunakan Data 3n!ironment.
#uatlah -abel dengan struktur tabel Sbb$
Cama table M>S.3b5
Nama Fel3 TD$e 73*; I+3e# TD$e
Cim 6 ? /s'ending "eguler
Cama 6 5?
EHkel 6 4)
/lamat 6 5?
+ota 6 5?
Eurusan C 5?
;nput data sebanyak > re'ord
#uatlah form seperti diba,ah ini kemudian /turlah .ropertiesnya, dan jangan lupa buat
method baru untuk form yaitu #3"S;G
54
X
.
M

BSI Salemba 22
0bjek dan property yang digunakan dan dirubah $
OB,EK PROPERT= NILAI
2/#324 6/.-;0C D/-/ M/G/S;S7/
2/#325 6/.-;0C C;M
2/#32> 6/.-;0C C/M/
2/#32B 6/.-;0C E%"%S/C
OB,EK PROPERT= NILAI
2/#32? 6/.-;0C E3C;S +32/M;C
2/#32( 6/.-;0C /2/M/-
2/#32F 6/.-;0C +0-/
2/#32@ 6/.-;0C C;M
-3I-4 C/M3 -I-E/M
-3I-5 C/M3
60C-"02S0%"63
-I-C;M
MGS.C;M
-3I-> C/M3
60C-"02S0%"63
-I-C/M/
MGS.C/M/
-3I-B C/M3
60C-"02S0%"63
-I-/2/M/-
MGS./2/M/-
60M#04 60C-"02S0%"63
"07S0%"63
MGS.+0-/
E/+/"-/,#/CD%CD,S%"/#/&/,
&0D&/+/"-/, 6;"3#0C
-3I-? C/M3 -I-6/";
-;M3"4 ;C-3"/2 4)))
0.-;0CD"0%.4 60C-"02S0%"63 MGS.EH+32
0.-;0C4 6/.-;0C 2/+;<2/+;
0.-;0C5 6/.-;0C .3"3M.%/C
2;S-4 60C-"02S0%"63
"07S0%"63
MGS.E%"%S/C
M/C/E3M3C
;CF0"M/-;+/,+0M.%-3"
/+%C-/CS;,-3+C;+
+0M.%-3",S3+"3-/";S,
#"0/D6/S-;CD
60MM/CD4 C/M3
6/.-;0C
6MD/DD
=M-/M#/G
60MM/CD5 C/M3 6MDG/.%S
55
BSI Salemba 22
6/.-;0C =MG/.%S
60MM/CD> C/M3
6/.-;0C
6MDS;M./C
=MS;M./C
60MM/CDB C/M3
6/.-;0C
6MD#"07S3
=M#"07S3
60MM/CD? C/M3
6/.-;0C
6MD-0.
=M-0.
60MM/CD( C/M3
6/.-;0C
6MD#/6+
=M#/6+
60MM/CDF C/M3
6/.-;0C
6MDC3I-
=MC3I-
60MM/CD@ C/M3
6/.-;0C
6MD#0--0M
=M#0--0M
60MM/CDA C/M3
6/.-;0C
6MD+32%/"
=M+32%/"
60MM/CD4) C/M3
6/.-;0C
6MD6/";
=M6/";
Ob(e)* ? F"%m1 P%")e3!%e ? A)*4a*e
S3- D323 0C
%S3 P'$=do'uments and settings=ti bsi=my do'uments=labHoHsore=foxpro=foxHuas=MGS.D#FP
FB!1a ses!a 3e+:a+ *em$a* $e+Dm$a+a+ *abel M>S a+3a
Ob(e)* ? F"%m1 P%")e3!%e ? be%s;
thisform.txtnim.!alueJPP
thisform.txtnama.!alueJPP
thisform.txtalamat.!alueJPP
thisform.optiongroup4.!alueJ)
thisform.list4.!alueJPP
Ob(e)* ? CM&BRO7SE P%")e3!%e ? CLICK
#ro,se
Ob(e)* ? CM&A&& P%")e3!%e ? CLICK
append blank
thisform.txtnim.!alueJPP
thisform.txtnama.!alueJPP
thisform.txtalamat.!alueJPP
thisform.optiongroup4.!alueJ)
thisform.list4.!alueJPP
thisform.txtnim.setfo'us
thisform.'ombo4.!alueJPP
Ob(e)* ? CM&>APUS P%")e3!%e ? CLICK
if re''ount()MJ )
5>
BSI Salemba 22
return
endif
pesanJmessagebox(Pbenar data akan dihapusP,>(,PkonfirmasiP)
if pesan J(
delete
pa'k
endif
thisform.refresh
Ob(e)* ? CM&SIMPAN P%")e3!%e ? CLICK
repla'e nim ,ith thisform.txtnim.!alue
repla'e nama ,ith thisform.txtnama.!alue
if thisform.optiongroup4.option4.!alueJ4
repla'e jHkel ,ith P2/+;<2/+;P
endif
if thisform.optiongroup4.option5.!alueJ4
repla'e jHkel ,ith P.3"3M.%/CP
endif
repla'e kota ,ith thisform.'ombo4.!alue
repla'e jurusan ,ith thisform.list4.!alue
go top
thisform.refresh
Ob(e)* ? CM&CARI P%")e3!%e ? CLICK
lo'ate for nimJ-";M(thisform.txt'ari.!alue)
if found()
thisform.refresh
else
messagebox(PD/-/ -;D/+ /D/ -%G...QQP,B@,P;CF0P)
thisform.txt'ari.!alueJPP
thisform.txt'ari.setfo'us
endif
Ob(e)* ? CM&NEXT P%")e3!%e ? CLICK
skip
if eof ()
go bottom
messagebox(Pini re'ord terakhirP,B?,PperhatianP)
endif
thisform.refresh
5B
BSI Salemba 22
Ob(e)* ? CM&KELUAR P%")e3!%e ? CLICK
thisform.release
Ob(e)* ? CM&BACK P%")e3!%e ? CLICK
skip<4
if #of ()
go -0.
messagebox(Pini re'ord a,alP,B?,PperhatianP)
endif
thisform.refresh
Ob(e)* ? CM&BOTTOM P%")e3!%e ? CLICK
go bottom
thisform.refresh
Ob(e)* ? CM&TOP P%")e3!%e ? CLICK
go top
thisform.refresh
Ob(e)* ? TIMER1 P%")e3!%e ? TIMER
thisform.txtjam.!alueJtime()
if thisform.lbl4.!isibleJ.t.
thisform.lbl4.!isibleJ.f.
else
thisform.lbl4.!isibleJ.t.
endif
5?
BSI Salemba 22
La*;a+ 6
6ontoh .rogram .engolahan data melalui form yang terdiri dari O$*"+ G%"!$@ C;e)1 B"#@
Tme%@ C"mb"B"# menggunakan full program (tanpa Data 3n!ironment)
Dengan struktur tabel sbb $
Cama tabel MA>ASIS7A.3b5
Nama Fel3 TD$e 73*; &e)mal I+3e# TD$e
Cim 6 ( /s'ending "eguler
Cama 6 4?
EnsHkel 6 4)
/lamat 6 5?
+ota 6 4?
beasis,a C 45 5
;nput data sebanyak >
#uatlah form seperti diba,ah ini kemudian /turlah .ropertiesnya
#uatlah method baru untuk dengan nama
4. -ampilData
5(
BSI Salemba 22
5. +ondisi0n
>. +ondisi0ff
K"3e P%":%am ?
F"%m1 A)*4a*e
set defa to Pmasukan dri!e penyimpanan file andaP
set delete on
use sis,a
thisform.tampildata
thisform.kondisioff
publi' isi R pembuatan !ariabel isi
isiJ.-.
Cm3Tamba; Cl)1
thisform.kondision
thisform.text4.!alueJPP
thisform.text5.!alueJPP
thisform.optiongroup4.option4.!alueJ4
thisform.text>.!alueJPP
thisform.'he'k4.!alueJ)
thisform.'he'k5.!alueJ)
thisform.textB.!alueJPP
thisform.textB.enabledJ.F.
thisform.text4.setfo'us
Cm3>a$!s Cl)1
if messagebox(PGapus "e'ordP,>5 8
4,P+onfirmasiP)J4
delete
pa'k
endif
thisform.tampildata
thisform.refresh
Cm3E3* Cl)1
Cm3T"$ Cl)1
go top
thisform.tampildata
thisform.kondisioff
thisform.refresh
Cm3Ne#* Cl)1
skip
if eof()
messagebox(P/,al "e'ordP,(B,P;nfoP)
go bottom
endif
thisform.tampildata
thisform.kondisioff
thisform.refresh
Cm3P%e4 Cl)1
skip <4
if bof()
messagebox(P/,al "e'ordP,(B,P;nfoP)
go top
endif
thisform.tampildata
thisform.kondisioff
thisform.refresh
Cm3Las* Cl)1
go bottom
thisform.tampildata
thisform.kondisioff
thisform.refresh
5F
BSI Salemba 22
isiJ.F.
thisform.text4.enabledJ.F.
thisform.kondision
thisform.text5.setfo'us
thisform.refresh
Cm3Sm$a+ Cl)1
if isiJ.-.
appe blan
repla'e nim ,ith thisform.text4.!alue
repla'e nama ,ith thisform.text5.!alue
if thisform.optiongroup4.option4.!alueJ4
repla'e jnsHkel ,ith P.riaP
else
thisform.optiongroup4.option5.!alueJ4
repla'e jnsHkel ,ith P7aniataP
endif
repla'e alamat ,ith thisform.text>.!alue
repla'e kota ,ith thisform.'ombo4.!alue
repla'e beasis,a ,ith thisform.textB.!alue
else
repla'e nim ,ith thisform.text4.!alue
repla'e nama ,ith thisform.text5.!alue
if
thisform.optiongroup4.option4.!alueJ4
repla'e jnsHkel ,ith P.riaP
else
thisform.optiongroup4.option5.!alueJ4
repla'e jnsHkel ,ith P7anitaP
endif
repla'e alamat ,ith thisform.text>.!alue
repla'e kota ,ith thisform.'ombo4.!alue
repla'e beasis,a ,ith thisform.textB.!alue
endif
thisform.kondisioff
thisform.refresh
F"%m1 K"+3sO+
thisform.text4.enabledJ.t.
thisform.text5.enabledJ.t.
thisform.optiongroup4.enabledJ.t.
Cm3Ca% Cl)1
set order to tag nim
if seek(trim(thisform.textF.!alue))
thisform.tampildata
endif
thisform.refresh
Tme%1 Tme%
thisform.text?.!alueJ date()
thisform.text(.!alueJ time()
F"%m1 Tam$&a*a
x J mahasi,a.jnsHkel
thisform.text4.!alueJmahasi,a.nim
thisform.text5.!alueJmahasi,a.nama
if x J P.riaP then
thisform.optiongroup4.option4.!alueJ4
thisform.optiongroup4.option5.!alueJ)
else
thisform.optiongroup4.option4.!alueJ)
thisform.optiongroup4.option5.!alueJ4
endif
thisform.text>.!alueJmahasi,a.alamat
thisform.'ombo4.!alueJmahasi,a.kota
thisform.textB.!alueJmahasi,a.beasis,a
if mahasi,a.beasis,a J ) then
thisform.'he'k5.!alueJ4
thisform.'he'k4.!alueJ)
else
thisform.'he'k4.!alueJ4
thisform.'he'k5.!alueJ)
endif
F"%m1 K"+3sO55
thisform.text4.enabledJ.F.
thisform.text5.enabledJ.F.
thisform.optiongroup4.enabledJ.F.
5@
BSI Salemba 22
thisform.text>.enabledJ.t.
thisform.'ombo4.enabledJ.t.
thisform.'he'k4.enabledJ.t.
thisform.'he'k5.enabledJ.t.
thisform.textB.enabledJ.t.
thisform.text>.enabledJ.F.
thisform.'ombo4.enabledJ.F.
thisform.'he'k4.enabledJ.F.
thisform.'he'k5.enabledJ.F.
thisform.textB.enabledJ.F.
Cm3Kel!a% Cl)1
thisform.release()
La*;a+ K
6ontoh .rogram .engolahan data melalui form yang terdiri dari O$*"+ G%"!$@ Ls*@ Tme%@
C"mb"B"# menggunakan full program
#uatlah -abel dengan struktur file Sbb$
Nama Fel3 TD$e 73*; I+3e# TD$e
Cim 6 4) /s'ending .rimary
Cama 6 >?
/lamat 6 >?
-gllhr D @
Ers 6 5?
+ota C 4)
7aktu 6 4>
EHkel 6 F
Del 6 B
/kademi 6 (
Sms C 4)
Spp C 4)
.ra C 4)
-otal C 4)
;nput data sebanyak >
#uatlah form seperti diba,ah ini kemudian /turlah .ropertiesnya
5A
BSI Salemba 22
#uatlah metode baru dengan nama $
4. bersih
5. kondisia,al
>. tampildata
Ob(e)* ? F"%m1 P%")e3!%e ? A)*4a*e
%S3 P'$=do'uments and settings=ti bsi=my do'uments=labHoHsore=foxpro=foxHuas=mhsbr.D#FP
S3- 0"D3" -0 -/D C;M
publi' judul,i
judulJthisform.label4.'aption
iJ)
-G;SF0"M.-/M.;2D/-/
-G;SF0"M.+0CD;S;/7/2
.%#2;6 ;S;
;S;J.-.
Ob(e)* ? F"%m1 P%")e3!%e ? L"a3
620S3 D/-/#/S3
620S3 /22
>)
BSI Salemba 22
Ob(e)* ? F"%m1 P%")e3!%e ? Be%s;
-G;SF0"M.C;M./2%3JPP
-G;SF0"M.C/M/./2%3JPP
-G;SF0"M.-D22G"./2%3JPP
-G;SF0"M./2/M/-./2%3JPP
-G;SF0"M.E"S./2%3JPP
-G;SF0"M.+0-/./2%3JPP
-G;SF0"M.EH+32./2%3J)
-G;SF0"M.D32./2%3J)
-G;SF0"M./+/D3M;./2%3J)
-G;SF0"M.SMS./2%3JPP
-G;SF0"M.S.../2%3JPP
-G;SF0"M.."/./2%3JPP
-G;SF0"M.-0-/2./2%3JPP
-G;SF0"M.C;M.3C/#23DJ.-.
-G;SF0"M.C/M/.3C/#23DJ.-.
-G;SF0"M.-D22G".3C/#23DJ.-.
-G;SF0"M./2/M/-.3C/#23DJ.-.
-G;SF0"M.E"S.3C/#23DJ.-.
-G;SF0"M.+0-/.3C/#23DJ.-.
-G;SF0"M.EH+32.3C/#23DJ.-.
-G;SF0"M.D32.3C/#23DJ.-.
-G;SF0"M./+/D3M;.3C/#23DJ.-.
-G;SF0"M.SMS.3C/#23DJ.-.
-G;SF0"M.S...3C/#23DJ.-.
-G;SF0"M.."/.3C/#23DJ.-.
-G;SF0"M.-0-/2.3C/#23DJ.-.
Ob(e)* ? F"%m1 P%")e3!%e ? 1"+3sa-al
-G;SF0"M.C;M.3C/#23DJ.F.
-G;SF0"M.C/M/.3C/#23DJ.F.
-G;SF0"M.-D22G".3C/#23DJ.F.
-G;SF0"M./2/M/-.3C/#23DJ.F.
-G;SF0"M.E"S.3C/#23DJ.F.
-G;SF0"M.+0-/.3C/#23DJ.-.
-G;SF0"M.EH+32.3C/#23DJ.F.
-G;SF0"M.D32.3C/#23DJ.F.
-G;SF0"M./+/D3M;.3C/#23DJ.F.
-G;SF0"M.SMS.3C/#23DJ.F.
-G;SF0"M.S...3C/#23DJ.F.
>4
BSI Salemba 22
-G;SF0"M.."/.3C/#23DJ.F.
-G;SF0"M.-0-/2.3C/#23DJ.F.
Ob(e)* ? F"%m1 P%")e3!%e ? *am$l3a*a
-G;SF0"M.C;M./2%3JMGS#".C;M
-G;SF0"M.C/M/./2%3JMGS#".C/M/
-G;SF0"M.-D22G"./2%3JMGS#".-D22G"
-G;SF0"M./2/M/-./2%3JMGS#"./2/M/-
-G;SF0"M.E"S./2%3JMGS#".E"S
-G;SF0"M.+0-/./2%3JMGS#".+0-/
-G;SF0"M.EH+32./2%3JMGS#".EH+32
-G;SF0"M.D32./2%3JMGS#".D32
-G;SF0"M./+/D3M;./2%3JMGS#"./+/D3M;
-G;SF0"M.SMS./2%3JMGS#".SMS
-G;SF0"M.S.../2%3JMGS#".S..
-G;SF0"M.."/./2%3JMGS#".."/
-G;SF0"M.-0-/2./2%3JMGS#".-0-/2
Ob(e)* ? Tme% P%")e3!%e ? Tme%
-G;SF0"M.E/M.alueJ-;M3()
Ob(e)* ? B%"-se P%")e3!%e ? CLICK
#ro,se
Ob(e)* ? Tamba; P%")e3!%e ? CLICK
append blank
thisform.bersih
thisform.nim.setfo'us
thisform.jrs.enabledJ.f.
thisform.+0-/.!alueJPP
-G;SF0"M.."/./2%3J4?))))
Ob(e)* ? >a$!s P%")e3!%e ? CLICK
if re''ount()MJ )
return
endif
pesanJmessagebox(Pbenar data akan dihapusP,>(,PkonfirmasiP)
if pesan J(
delete
>5
BSI Salemba 22
pa'k
endif
D0 -0.
-G;SF0"M.-/M.;2D/-/
thisform.refresh
Ob(e)* ? Sm$a+ P%")e3!%e ? CLICK
"3.2/63 C;M 7;-G -G;SF0"M.C;M./2%3
"3.2/63 C/M/ 7;-G -G;SF0"M.C/M/./2%3
;F ;S;J.F.
"3.2/63 -D22G" 7;-G 6-0D(-G;SF0"M.-D22G"./2%3)
32S3
"3.2/63 -D22G" 7;-G -G;SF0"M.-D22G"./2%3
3CD;F
"3.2/63 /2/M/- 7;-G -G;SF0"M./2/M/-./2%3
"3.2/63 E"S 7;-G -G;SF0"M.E"S./2%3
"3.2/63 +0-/ 7;-G -G;SF0"M.+0-/./2%3
if thisform.jHkel..";/.!alueJ4
repla'e jHkel ,ith P.";/P
endif
if thisform.jHkel..";/.!alueJ4
repla'e jHkel ,ith P7/C;-/P
endif
if thisform.D32.;.!alueJ4
repla'e D32 ,ith P;P
endif
if thisform.D32.;;.!alueJ4
repla'e D32 ,ith P;;P
endif
if thisform.D32.;;;.!alueJ4
repla'e D32 ,ith P;;;P
endif
if thisform.D32.;.!alueJ4
repla'e D32 ,ith P;P
endif
if thisform./+/D3M;./M;+.!alueJ4
>>
BSI Salemba 22
repla'e /+/D3M; ,ith P/M;+P
endif
if thisform./+/D3M;./SM.!alueJ4
repla'e /+/D3M; ,ith P/SMP
endif
if thisform./+/D3M;./#/.!alueJ4
repla'e /+/D3M; ,ith P/#/P
endif
if thisform./+/D3M;./+0M.!alueJ4
repla'e /+/D3M; ,ith P/+0MP
endif
;F -G;SF0"M.7/+-%../D;./2%3J4
"3.2/63 7/+-% 7;-G P./D;=S;/CDP
3CD;F
;F -G;SF0"M.7/+-%.M/2/M./2%3J4
"3.2/63 7/+-% 7;-G PS0"3=M/2/MP
3CD;F
"3.2/63 SMS 7;-G -G;SF0"M.SMS./2%3
"3.2/63 S.. 7;-G -G;SF0"M.S.../2%3
"3.2/63 ."/ 7;-G -G;SF0"M.."/./2%3
"3.2/63 -0-/2 7;-G -G;SF0"M.-0-/2./2%3
thisform.kondisia,al
Ob(e)* ? Ne#* P%")e3!%e ? CLICK
skip
if eof ()
go bottom
messagebox(Pini re'ord terakhirP,B?,PperhatianP)
endif
thisform.tampildata
Ob(e)* ? Kel!a% P%")e3!%e ? CLICK
thisform.release
Ob(e)* ? Ba)1 P%")e3!%e ? CLICK
skip<4
if #of ()
go -0.
messagebox(Pini re'ord a,alP,B?,PperhatianP)
>B
BSI Salemba 22
endif
thisform.tampildata
Ob(e)* ? B"**"m P%")e3!%e ? CLICK
go bottom
thisform.tampildata
Ob(e)* ? T"$ P%")e3!%e ? CLICK
go top
thisform.tampildata
Ob(e)* ? CM&>ITUNG P%")e3!%e ? CLICK
-G;SF0"M.-0-/2.alueJ-G;SF0"M.SMS.alue8-G;SF0"M.S...alue8-G;SF0"M.."/.alue
Ob(e)* ? R!ba; P%")e3!%e ? CLICK
-G;SF0"M.C;M.3C/#23DJ.-.
-G;SF0"M.C/M/.3C/#23DJ.-.
-G;SF0"M.-D22G".3C/#23DJ.-.
-G;SF0"M./2/M/-.3C/#23DJ.-.
-G;SF0"M.E"S.3C/#23DJ.F.
-G;SF0"M.+0-/.3C/#23DJ.-.
-G;SF0"M.EH+32.3C/#23DJ.-.
-G;SF0"M.D32.3C/#23DJ.-.
-G;SF0"M./+/D3M;.3C/#23DJ.-.
-G;SF0"M.SMS.3C/#23DJ.-.
-G;SF0"M.S...3C/#23DJ.-.
-G;SF0"M.."/.3C/#23DJ.-.
-G;SF0"M.-0-/2.3C/#23DJ.-.
Ob(e)* ? (%s P%")e3!%e ? CLICK
;F -G;SF0"M.E"S./2%3JP+0M.%-3";S/S; /+%C-/CS;P ./CD.
-G;SF0"M.7/+-%../D;./2%3J4
-G;SF0"M.SMS./2%3J@)))))
3CD;F
;F -G;SF0"M.E"S./2%3JP+0M.%-3";S/S; /+%C-/CS;P ./CD.
-G;SF0"M.7/+-%.M/2/M./2%3J4
-G;SF0"M.SMS./2%3JA@))))
>?
BSI Salemba 22
3CD;F
;F -G;SF0"M.E"S./2%3JPM/C/E3M3C ;CF0"M/-;+/P ./CD.
-G;SF0"M.7/+-%../D;./2%3J4
-G;SF0"M.SMS./2%3J@)))))
3CD;F
;F -G;SF0"M.E"S./2%3JPM/C/E3M3C ;CF0"M/-;+/P ./CD.
-G;SF0"M.7/+-%.M/2/M./2%3J4
-G;SF0"M.SMS./2%3JA@))))
3CD;F
;F -G;SF0"M.E"S./2%3JP-3+C;+ +0M.%-3"P ./CD. -G;SF0"M.7/+-%../D;./2%3J4
-G;SF0"M.SMS./2%3J@)))))
3CD;F
;F -G;SF0"M.E"S./2%3JP-3+C;+ +0M.%-3"P ./CD. -G;SF0"M.7/+-%../D;./2%3J4
-G;SF0"M.SMS./2%3JA@))))
3CD;F
D0 6/S3
6/S3 -G;SF0"M.E"S./2%3JPS3+"3-/";SP
-G;SF0"M.SMS./2%3JA?))))
6/S3 -G;SF0"M.E"S./2%3JPM/C/E3M3C /DM;C;S-"/S;P
-G;SF0"M.SMS./2%3J@)))))
6/S3 -G;SF0"M.E"S./2%3JP#/G/S/ ;CDD";SP
-G;SF0"M.SMS./2%3J@)))))
6/S3 -G;SF0"M.E"S./2%3JP+3G%M/S/C (.%#2;6 "32/-;0C)P
-G;SF0"M.SMS./2%3J@)))))
6/S3 -G;SF0"M.E"S./2%3JP.3C&;/"/C (#"0/D6/S-;CD)P
-G;SF0"M.SMS./2%3JA@))))
0-G3"7;S3
-G;SF0"M.SMS./2%3J@)))))
3CD6/S3
>(
BSI Salemba 22
MENENTUKAN AREA KER,A
isual Foxpro menyediakan >5F(F area kerja.
/rea kerja yang dipakai table dimulai dari nomor 4
#entuk %mum $
S3236- area kerja
isual Foxpro menyediakan mekanisme yang memungkinkan /nda tidak perlu menyebutkan
nomor area kerja se'ara eksplisit (langsung).
6ontoh $
S3236- )
%S3 S;S7/
S3236- 4
%S3 mtkul
>F
BSI Salemba 22
MO&UL 6
RELASI ONE TO MAN=
La*;a+ P ?
"elasi one to many pada program pembelian barang, mulai dari pembuatan database,
pembuatan tabel, form, report, sampai pembuatan menu utama.
#uat database PEMBELIAN.3b)
Struktur tabel $
1. -abel #arang BARANG.3b5
F;32D -&.3 7;D-G ;CD3I
kodebar 6hara'ter ( /s'ending, primary
namabar 6hara'ter >)
Garga Cumeri' @
jumbar numeri' >
2. -abel Supplier SUPPLIER.3b5
F;32D -&.3 7;D-G ;CD3I
kodesupp 6hara'ter ( /s'ending, primary
namasupp 6hara'ter >)
/lamat 6hara'ter 5?
-elepon 6hara'ter 45
B. -abel -M.#32; TMPBELI.3b5
F;32D -&.3 7;D-G ;CD3I
kodesupp 6hara'ter (
namasupp 6hara'ter >)
>@
BSI Salemba 22
Garga Cumeri' 4>
Emlbeli Cumeri' ?
-otalbeli Cumeri' 45
O. -abel .embelian PEMBELIAN.3b5
F;32D -&.3 7;D-G ;CD3I
CoHfaktur 6hara'ter 4B /s'ending, reguler
kodebar 6hara'ter ( /s'ending, reguler
kodesupp 6hara'ter ( /s'ending, reguler
Emlbeli Cumeri' ?
-otalbeli Cumeri' 45
-glbeli Date @
#uatlah form barang berikut ini $
OB,ECT ? FORM1 PROCE&URE ? ACTIVATE
S3- D323 0C
620S3 /22
%S3 P6$=D/-/=#/"/CD.D#FP
S3- 0"D3" -0 -/D +0D3#/"
-G;SF0"M.-I-+0D3#/".3C/#23DJ.-.
-G;SF0"M.-I-C/M/#/".3C/#23DJ.F.
-G;SF0"M.-I-G/"D/.3C/#23DJ.F.
-G;SF0"M.-I-E%M.3C/#23DJ.F.
-G;SF0"M.-I-+0D3#/"./2%3JP P
-G;SF0"M.-I-C/M/#/"./2%3JP P
-G;SF0"M.-I-G/"D/./2%3JP P
-G;SF0"M.-I-E%M./2%3JP P
>A
BSI Salemba 22
-G;SF0"M.6MDS/3.3C/#23DJ.F.
-G;SF0"M.6MD6/";.;S;#23J.-.
-G;SF0"M.6MDD32.3C/#23DJ.F.
-G;SF0"M.6MD3D;-.3C/#23DJ.F.
-G;SF0"M.6MD/DD.3C/#23DJ.F.
-G;SF0"M.-I-+0D3#/".S3-F06%S()
.%#2;6 ;S;
;S;J.-.
OB,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3 ."0D"/M 9QD/M./CD, S/M/ S3.3"-; F0"M #/"/CD.
#uatlah form -"/CS/+S; .3M#32;/C #3";+%- $
B>
BSI Salemba 22
OB,EK PROPERT= NILAI
60M#04 C/M3
60C-"02S0%"63
"07S0%"63
"07S0%"63-&.3
6M#+DHS%..
S%..2;3"
S%..2;3".+0D3S%..
5</2;/S
60M#05 C/M3
60C-"02S0%"63
"07S0%"63
"07S0%"63-&.3
6MD+DH#"D
#/"/CD
#/"/CD.+0D3#/"
5</2;/S
D";D4 "360"DS0%"63
"360"DS0%"63-&.3
-M.#32;
4</2;/S
BB
BSI Salemba 22
Ob(e)* ? F"%m1 P%")e3!%e ? A)*4a*e
thisform.kondisia,al
set date british
mtglJdate()
thisform.txttgl.!alueJmtgl
publi' isi
isiJ.t.
Ob(e)* ? F"%m1 P%")e3!%e ? L"a3
'lose all
sele 4
use Pd$=ta=data=barang.dbfP
set order to tag kodebar
sele 5
use Pd$=ta=data=supplier.dbfP
set order to tag kodesupp

sele >
use Pd$=ta=data=tmpbeli.dbfP
sele B
use Pd$=ta=data=pembelian.dbfP
set order to tag noHfaktur
set relation to kodebar into barang
set relation to kodesupp into supplier addi
sele >
dele all
pa'k
Ob(e)* ? F"%m1 P%")e3!%e ? Be%s;
thisform.txtfak.!alueJPP
thisform.'mbkdHsupp.!alueJPP
thisform.txtnmHsupp.!alueJPP
thisform.'mbkdHbar.!alueJPP
thisform.txt*ty.!alueJPP
thisform.txtnmHbar.!alueJPP
thisform.txthrg.!alueJPP
thisform.txtbyr.!alueJPP
Ob(e)* ? )m3a33 P%")e3!%e ? Cl)1
sele B
if empty(thisform.txtfak.!alue)
messagebox(PCo.Faktur Garus diisi
P,B@,P.erhatianP)
thisform.txtfak.setfo'us
return
endif
if seek(trim(thisform.txtfak.!alue))
messagebox(PCo.Faktur tersebut sudah
adaP,B@,P.erhatianP)
thisform.txtfak.setfo'us
return
else
thisform.'mbkdHsupp.enabledJ.t.
thisform.'mbkdHsupp.setfo'us
endif
Ob(e)* ? )m3)a+)el P%")e3!%e ? Cl)1
-hisform.kondisia,al
sele >
thisform.grid4.re'ordsour'eJP.embelianP
thisform.grid4.'olumn4.,idthJ4))
thisform.grid4.'olumn5.,idthJ4))
thisform.grid4.'olumn>.,idthJ4))
thisform.grid4.'olumnB.,idthJ>)
thisform.grid4.'olumn?.,idthJ4))
thisform.grid4.'olumn?.,idthJ4))
thisform.txtfak.!alueJPP
thisform.'mbkdHsupp.!alueJPP
thisform.txtnmHsupp.!alueJPP
thisform.txtfak.setfo'us
Ob(e)* ? )m3sa4e P%")e3!%e ? Cl)1
sele >
s'an
sele B
appen blank
repl noHfaktur ,ith thisform.txtfak.!alue
repl tglbeli ,ith thisform.txttgl.!alue
B?
BSI Salemba 22
Ob(e)* ? F"%m1 P%")e3!%e ? K"+3sa-al
thisform.bersih
thisform.txtfak.setfo'us
thisform.txtfak.!alueJPP
thisform.txtfak.enabledJ.t.
thisform.'mbkdHsupp.enabledJ.f.
thisform.txtnmHsupp.enabledJ.f.
thisform.'mbkdHbar.enabledJ.f.
thisform.txtnmHbar.enabledJ.f.
thisform.txt*ty.enabledJ.f.
thisform.txthrg.enabledJ.f.
thisform.txtbyr.enabledJ.f.
thisform.'mdsa!e.enabledJ.f.
thisform.'md'an'el.enabledJ.f.
thisform.'mdlagi.enabledJ.f.
Ob(e)* ? *#*5a1 P%")e3!%e ? L"s*F")!s
thisform.'mdadd.setfo'us
Ob(e)* ? )mb132ba% P%")e3!%e ? Cl)1
sele 4
if seek(thisform.'mbkdHbar.!alue)
thisform.txtnmHbar.!alueJnamabar
thisform.txthrg.!alueJharga
thisform.txt*ty.enabledJ.t.
thisform.txt*ty.setfo'us
else
messagebox(P#elum terdaftarP,B@,P.esanP)
endif
Ob(e)* ? )mb132s!$$ P%")e3!%e ? Cl)1
sele 5
if seek(thisform.'mbkdHsupp.!alue)
thisform.txtnmHsupp.!alueJnamasupp
thisform.'mbkdHbar.enabledJ.t.
thisform.'mbkdHbar.setfo'us
else
messagebox(P6ustomer tersebut tidak adaP,B@,P.esanP)
endif
Ob(e)* ? *#*Q*D P%")e3!%e ? L"s*F")!s
repl kodesupp ,ith thisform.'mbkdHsupp.!alue
repl kodebar ,ith tmpbeli.kdHbarang
repl jmlbeli ,ith tmpbeli.jmlbeli
repl totalbeli ,ith tmpbeli.totalbeli
sele 4
repl jumlah ,ith barang.jumlah8tmpbeli.jmlbeli
sele >
ends'an
sele >
dele all
pa'k
thisform.grid4.re'ordsour'eJPtmpbeliP
thisform.grid4.'olumn4.,idthJ4))
thisform.grid4.'olumn5.,idthJ4))
thisform.grid4.'olumn>.,idthJ4))
thisform.grid4.'olumnB.,idthJ4))
thisform.grid4.'olumn?.,idthJ4))
thisform.kondisia,al
thisform.refresh
Ob(e)* ? )m3la: P%")e3!%e ? Cl)1
sele >
appen blank
repl kodebar ,ith thisform.'mbkdHbar.!alue
repl namabar ,ith thisform.txtnmHbar.!alue
repl harga ,ith thisform.txthrg.!alue
repl jmlbeli ,ith !al(thisform.txt*ty.!alue)
repl totalbeli ,ith thisform.txtbyr.!alue
thisform.refresh
thisform.'mbkdHbar.!alueJPP
thisform.'mbkdHbar.setfo'us
thisform.txtnmHbar.!alueJPP
thisform.txthrg.!alueJPP
thisform.txt*ty.!alueJPP
thisform.txtbyr.!alueJPP
thisform.'mdlagi.enabledJ.f.
B(
BSI Salemba 22
m*tyJ!al(thisform.txt*ty.!alue)
mhargaJthisform.txthrg.!alue
thisform.txtbyr.!alueJm*tyRmharga
thisform.'mdlagi.enabledJ.t.
thisform.'mdsa!e.enabledJ.t.
Ob(e)* ? )m3e#* P%")e3!%e ? Cl)1
thisform.release
thisform.'mdsa!e.enabledJ.t.
thisform.'md'an'el.enabledJ.t.
Ob(e)* ? )m3b%"-se P%")e3!%e ? Cl)1
do form P'$=do'uments and settings=ti bsi=my
do'uments=labHoHsore=foxpro=ta=form=bro,sepe
mbelian.s'xP


BF
BSI Salemba 22
MO&UL K
REPORT
.embuatan report dalam modul ini menggunakan "eport Designer. /dapun tahapan dalam
pembuatan report akan dijelaskan seperti diba,ah ini $
4. /ktifkan proje't anda (pastikan database .3M#32;/C.db' beserta tabelnya telah ada)
5. Dari .roje't Manajer pilih tab Do'(men#"
>. +lik Re)or#! Ne! Ne Re)or#
B. 2alu akan tampil "eport Designer
B@
BSI Salemba 22
?. +lik kanan pada "eport Designer, lalu klik Data 3n!ironment
(. Add dari database .embelian, yaitu tabel pembelian, barang, dan supplier
F. 2alu drag Field" dari tabel .embelian ke Detail pada "eport Designer
Drag dari tabel #arang ke Detail, yaitu namabar, harga
Drag dari tabel Supplier ke Detail, yaitu namasupp
@. /tur tampilan seperti diba,ah ini, lalu pilih i'on Prin# Pre*ie atau klik kanan pada
"eport Designer, pilih Pre*ie
BA
BSI Salemba 22
A. Setelah memastikan hasil laporan benar, maka buatlah relasi pada data en!ironment
4). 2alu buat Data Drouping. +lik menu Re)or#, .ilih Da#a +ro()in,, atau klik kanan pada
"eport Designer, pilih Da#a +ro()in,.
44. .ada ,ro() e-)re""ion" double klik , lalu tampil jendela E-)re""ion" .(ilder. .ada
Field" 'ari pembelian.noHfaktur, double klik, sampai tampil di +ro() Re'ord" b/
E-)re""ion". 2alu 0+ dan 0+
?)
klik pada tombol ini
BSI Salemba 22
45. 2alu atur tampilan seperti diba,ah ini
?4
Fields
.i'ture//'ti!ex
#ound 6ontrol
"ounded "e'tangle
#utton 2o'k
"e'tangle
2abel 2;C3
BSI Salemba 22
4>. %ntuk .age Geader, gunakan Label, langsung ketik 2/.0"/C -"/CS/+S;
.3M#32;/C. %ntuk -anggal 6etak menggunakan 2abel, sedangkan untuk Date()
menggunakan fields. < +lik Field", letakkan disamping -anggal 6etak
< -ampil jendela Re)or# E-)re""ion"
< .ada E-)re""ion", double klik
< .ada Da#e, pilih D/-3(), lalu 0+, 0+
?5
BSI Salemba 22
4B. .ada +ro() Foo#er01no_2a3#(r, gunakan fields untuk totalbeli, lalu tampil jendela Re)or#
E-)re""ion"
4?. Double klik pada E-)re""ion", tampil jendela E-)re""ion" .(ilder.
Double klik pada .embelian.totalbeli, lalu 0+
?>
BSI Salemba 22
4(. .ada jendela Re)or# E-)re""ion", klik Cal'(la#ion", klik tombol S(m. 2alu 0+, 0+
4F. Pre*ie 2aporan untuk melihat hasilnya
?B
BSI Salemba 22
MO&UL P
MENU &ESIGNER
2angkah<langkah membuat Menu $
4. .ada .roje't Manajer klik tab O#$er, lalu pilih Men(" dan klik Ne
5. .ada jendela Men( De"i,ner, pilih In"er#. Maka pada Prom)# akan mun'ul Ne I#em
>. +etikkan berturut<turut menu yang akan mun'ul di menubar sebagai menu utama pada
kolom prompt.
B. 2alu lakukan pengisian seperti berikut
PROMPT RESULT
=MD/-/ S%#M3C% 6"3/-3
=M#/"/CD 60MM/CD do form P'$=barang.s'xP
=MS%..2;3" 60MM/CD Do form P'$=supplier.s'xP
??
BSI Salemba 22
Setelah selesai, pada Men( Le*el klik Menu #ar untuk kembali ke a,al. 2alu kembali
ke langkah > dan lakukan pengisian seperti berikut $
P%"m$* Res!l*
=M-"/CS/+S; S%#M3C% 6"3/-3
=M.3M#32;/C 60MM/CD do form P'$=pembelian.s'xP
Setelah selesai, pada Men( Le*el klik Menu #ar untuk kembali ke a,al. 2alu kembali
ke langkah > dan lakukan pengisian seperti berikut $
P%"m$* Res!l*
=M2/.0"/C S%#M3C% 6"3/-3
=M#/"/CD ."063D%"3 "3.0"- form P'$=barang.s'xP ."3;37
=MS%..2;3" ."063D%"3 "3.0"- form P'$=supplier.s'xP ."3;37
=M.3M#32;/C ."063D%"3 "3.0"- form P'$=pembelian.s'xP ."3;37
Setelah selesai, pada Men( Le*el klik Menu #ar untuk kembali ke a,al. 2alu kembali
ke langkah > dan lakukan pengisian seperti berikut $
P%"m$* Res!l*
=M+32%/" ."063D%"3 (ketikkan kode program seperti diba,ah)
?. Mengganti sistem menu yang ada.
+lik Vie pilih +eneral O)#ion". .ada Men( Code, klik Se#(), lalu 0+
?(
BSI Salemba 22
Maka akan mun'ul jendela, dan ketikkan kode programnya
-utup jendelanya dan klik Vie lagi, klik 6leanup, lalu 0+. +etikkan kode programnya
Setelah selesai, tutup jendelanya
(. 2alu pada Menu #ar M3C%, pilih +enera#e, dan simpan dengan nama M3C% %-/M/
?F
BSI Salemba 22
F. Setelah itu klik M3C% %-/M/ pada O#$er, 'oba "un program utamanya
?@

Anda mungkin juga menyukai