Upload
dhewy-chayank-chamyu
View
296
Download
21
Embed Size (px)
Citation preview
By Shu Galih
Tutorial Visual Foxpro
Latihan sederhana (Untuk Pemula)
Latihan berikut adalah contoh listing program untuk menghitung Luas Segitiga dengan Event
InteractiveChange.
Komponen Properties Nilai
Form1 Caption Form Perhitungan
Label1-Label4 Caption Sesuaikan dengan tampilan
Text1 Name TINGGI
Value 0
Text2 Name ALAS
Value 0
Text3 Name LUAS
Value 0
Enabled .F.
Command2 Name BERSIH
Caption \<Bersih
Command3 Name KELUAR
Caprion \<Keluar
Listing Program
TINGGI � InteractiveChange
WITH THISFORM
.LUAS.VALUE = 0.5 * .ALAS.VALUE * .TINGGI.VALUE
ENDWITH
ALAS � InteractiveChange
WITH THISFORM
.LUAS.VALUE = 0.5 * .ALAS.VALUE * .TINGGI.VALUE
ENDWITH
BERSIH � Click
WITH THISFORM
.TINGGI.VALUE=0
.ALAS.VALUE=0
.LUAS.VALUE=0
.TINGGI.SETFOCUS
ENDWITH
KELUAR � Click
PESAN=MESSAGEBOX ("Yakin ingin keluar form",4 + 64,"Latihan Foxpro")
IF PESAN = 6
THISFORM.RELEASE()
ENDIF
id4554406 pdfMachine by Broadgun Software - a great PDF writer! - a great PDF creator! - http://www.pdfmachine.com http://www.broadgun.com