Delphi Indonesia - Mobile Edition

nama: pass:

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
daengOffline
Location:
Post subject: Menampilkan Next Record  PostPosted: 01/Sep/2010 11:16
onConfident


Joined: 15-Apr-2009
Posts: 18

Status: Offline
Salam Hangat Para master Delphi

saya punya masalah nich,,,,,,?
masalahnya yaitu mau tampilkan record berikutnya?
jadi ceritannya begini :

saya memilki Satu table dengan field Nama & Daerah Asal
kemudian saya memiliki satu edit1.text untuk menampilkan nama kemudian satu combobox1 untuk memilih daerah asal
nach sekarang permasalahannya adalah :

ada 3 buah nama yang memiliki daerah asal yang sama, saya ingin menampilkan 3 nama tersebut dengan menekan dan nantinya nama tersebut muncul secara bergantian, masih dengan daerah asal yang sama?


mohon bantuannya ?


thank's before Embarassed
 
 View user's profile Send private message  
Reply with quote Back to top
hawkeyeOffline
Location:
Post subject:   PostPosted: 01/Sep/2010 14:25
onConfident


Joined: 30-Aug-2007
Posts: 25

Status: Offline
Itu maksud nya kalau combo daerah asal dipilih lalu kemudian 3 nama itu ganti-ganti an muncul di sebuah Edit Text yang sama?
 
 View user's profile Send private message  
Reply with quote Back to top
cyber_heckerOffline
Location: Ponti Hot City
Post subject:   PostPosted: 02/Sep/2010 03:46
onProfessional


Joined: 19-May-2005
Posts: 981
Location: Ponti Hot City
Status: Offline
pertanyaannya membingungkan

_________________
 
 View user's profile Send private message Yahoo Messenger MSN Messenger  
Reply with quote Back to top
andriansOffline
Location:
Post subject:   PostPosted: 02/Sep/2010 10:29
onNovice


Joined: 09-Apr-2008
Posts: 8

Status: Offline
diambil dlu datanya dengan query memakai perintah select.

code : sql
  1. SELECT nama WHERE daerah = "nama_daerah"
Parsed in 0.001 seconds, using GeSHi


dah itu lakukan pengulangan(terserah pake for atau while) yang digunakan untuk menampilkan data.

sebelum end pengulangan gunakan perintah next.
ex:
code : pascal
  1. for i = 0 to query1.recordcount do
  2. begin
  3. //kode tampilkan data...
  4. query1.next
  5. end
Parsed in 0.001 seconds, using GeSHi
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits
RSS