-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Postpemanggilan frame(4)
 by nasbms
 on 19.May at 16:14
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14
goto Posttanya biner to matriks(13)
 by diandewi
 on 14.May at 20:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 4 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 4 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
lelaOffline
Location:
Post subject: nampilin per 5 pada dbGrid  PostPosted: 08/Feb/2006 09:38
onSkilled


Joined: 03-Jun-2005
Posts: 109

Status: Offline
lela mo nampilin sebuah isi tabel dari mysql ke DBGrid pada delphi, tapi disini saya pengen nampilinya per 5, maksudnya buat ngeliat isi ke 6 sampai ke 10 (ke 5 yang berikutnya) musti di next dulu, disini saya menggunakan DBExpress, dengan ClientDataset,datasource.
tolong ya caranya gimana, aku bingung nih... nuhun ya...
 
 View user's profile Send private message  
Reply with quote Back to top
LuriDarmawan
Location: here
Post subject:   PostPosted: 08/Feb/2006 09:51
onApaAdanya


Joined: 15-Mar-2005
Posts: 1617
Location: here
kalo di MySQL bisa pake cara ini:
[sql:1:1beddf18e2]select * from namatabel limit nomorindexrecord,jumlahrecordyangdimunculkan[/sql:1:1beddf18e2]

misal:
[sql:1:1beddf18e2]select * from customer limit 10,5[/sql:1:1beddf18e2]

_________________
KIOSS Project, http://kioss.com

http://Delphi-Id.Org | http://Fox-Id.Org | http://PHP-Id.org | http://InfoBencana.web.id
http://opensource-indonesia.com | http://VideoSilat.com | http://SilatIndonesia.com
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
DelphiExpert
Location:
Post subject:   PostPosted: 08/Feb/2006 13:27
onMage


Joined: 06-Feb-2006
Posts: 2401

Hmm, hal ini bisa diatasi menggunakan statemen LIMIT pada MySQL.

Follow this flow:
- Deklarasikan variable global (Publik) untuk menyimpan current record start.
- Anda harus memodifikasi SQL query dengan menambahkan statemen LIMIT di akhir query

Misal: SELECT * FROM CUSTOMER LIMIT n, 5

Jika navigator Anda di Next / goto page, tinggal manipulasi variable n - nya doank.

Note: statement LIMIT di MySQL kalo nggak salah ingat gitu Smile silahkan cek referensinya

Ok, hope usefull

Best Regards - DelphiExpert

_________________
Dude, if you don't understand the basics and just want to get someone else write the code for you, it means you really shouldn't study computer science. Find a different field.
http://delphiexpert.wordpress.com
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
DelphiExpert
Location:
Post subject:   PostPosted: 08/Feb/2006 13:28
onMage


Joined: 06-Feb-2006
Posts: 2401

Hehe keduluan mas Luri. Ini aku dah nulis reply dari tadi. Ada tamu lupa belum di-post Mr. Green

_________________
Dude, if you don't understand the basics and just want to get someone else write the code for you, it means you really shouldn't study computer science. Find a different field.
http://delphiexpert.wordpress.com
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
LuriDarmawan
Location: here
Post subject:   PostPosted: 08/Feb/2006 15:17
onApaAdanya


Joined: 15-Mar-2005
Posts: 1617
Location: here
xixixixixix...
yg duluan post dapet hadiah permen coklat..
xixixiixixiiixixixiii.... Very Happy

_________________
KIOSS Project, http://kioss.com

http://Delphi-Id.Org | http://Fox-Id.Org | http://PHP-Id.org | http://InfoBencana.web.id
http://opensource-indonesia.com | http://VideoSilat.com | http://SilatIndonesia.com
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
kaka-delphi
Location: Taziex
Post subject:   PostPosted: 08/Feb/2006 15:23
onElite


Joined: 12-Oct-2005
Posts: 1050
Location: Taziex
Saya juga mo post tapi udah keduluan mas ulil, yach terpaksa dech beli coklat sendiri
wakakakakakakakakakakakkkkakkk ........... Very Happy Very Happy Very Happy
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
Reply with quote Back to top
spyoffOffline
Location:
Post subject:   PostPosted: 09/Feb/2006 00:01
onBeginner


Joined: 06-Feb-2006
Posts: 4

Status: Offline
kalo mau cara yang sulit, hasil query dimasukin ke dataset baru, sebanyak row yang diinginkan, tapi malah jadi susah nanti, hehehe, tapi klo databasenya g support limit mungkin bisa dicoba Very Happy

code : pascal
  1. function CreateTableInMemory(const AFieldDefs:TFieldDefs): TDataSet;
  2. var TempTable:TClientDataSet;
  3. begin
  4. TempTable:=nil;
  5. Result:=nil;
  6. if AFieldDefs<>nil then
  7. begin
  8. try
  9. TempTable:=TClientDataSet.Create(Application);
  10. TempTable.FieldDefs.Assign(AFieldDefs);
  11. TempTable.CreateDataSet;
  12. Result:=(TempTable as TDataSet);
  13. Except
  14. if TempTable<>nil then TempTable.Free;
  15. Result:=nil;
  16. raise;
  17. end
  18. end
  19. end;
Parsed in 0.004 seconds, using GeSHi
 
 View user's profile Send private message  
Reply with quote Back to top
mas_kofa
Location: New York Arto
Post subject:   PostPosted: 24/Nov/2006 14:51
onElite


Joined: 18-Mar-2006
Posts: 1753
Location: New York Arto
aku juga punya kasus mungkin agak mirip dengan lala...
ceritanya seperti ini.....

aku punya tabel mahasiswa (dgn mysql) ... tabel tidak urut berdasarkan nomor mahasiswa (tp urut berdasarkan nomor entry).......

yang saya inginkan, saya mo nampilin semua record dan urut berdasarkan nomor mahasiswa......
tapi saya harus dapat membawa record pointer ke record dengan nomor mahasiswa yang diinginkan.....misal record harus berada di record yang nomormahasiswa nya 06.23.345 .....

gmn ya caranya...????

sebelumnya makasih atas masukannya
 
 View user's profile Send private message  
Reply with quote Back to top
ImanD
Location: BeDeGe
Post subject:   PostPosted: 24/Nov/2006 15:20
onElite


Joined: 09-Oct-2005
Posts: 1313
Location: BeDeGe
mas kofa pake query aza:

- urut data berdasarkan no mahasiswa(no_mhs)

select * from tmahasiswa order by no_mhs

- klo untuk nunjuk recordnya tinggal pke Locate az, misal

uses DB;

ZQuery1.Locate('no_mhs',Edit1.Text,[loCaseInsensitive,loPartialKey]);

// Edit1.Text adalah 06.23.345 .....

_________________

website: http://darusmanaiman.net/
e-mail:
darusmanaiman@programmer.net
programmer@darusmanaiman.net
 
 View user's profile Send private message Visit poster's website Yahoo Messenger  
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


| Register | Lost Password ? |