listing Logika DO CASE Visual Foxpro


listing program aplikasi Foxpro "umur" dengan logika IF-ENDIF:

*Dengan logika "DO CASE"
1. buat Form seperti



2. listing

=> masukkan scrib/listing ke comman "proses":

DO case
CASE VAL(thisform.text2.Value)=>60
thisform.text3.Value="Lansia"
CASE VAL(thisform.text2.Value)=>21 and VAL(thisform.text2.Value)=<60
thisform.text3.Value="Dewasa"
CASE VAL(thisform.text2.Value)=>17 and VAL(thisform.text2.Value)=<20
thisform.text3.Value="Remaja"
CASE VAL(thisform.text2.Value)=>5 and VAL(thisform.text2.Value)<17
thisform.text3.Value="Anak-anak"
CASE VAL(thisform.text2.Value)<5
thisform.text3.Value="Balita"
otherwise
thisform.text3.Value=""
endcase

3.  Silahkan Run aplikasi dan lihat hasil..
     kurang lebih hasilnya seperti ini..






Semoga berhasil.. :)



Share this post :

+ komentar + 1 komentar

Sabtu, 06 Januari 2018 pukul 14.22.00 WITA

segera dicoba gan...
http://cody.id/produk/blower/blower-cody-858-digital/

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. Parlente - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger