Article View: comp.lang.pascal.delphi.databases
Article #115Re: Sorting Queries
From: Robert Kaplan
Date: Wed, 24 Feb 1999 00:00
Date: Wed, 24 Feb 1999 00:00
42 lines
2077 bytes
2077 bytes
Lief has a grid that will sort by clicking on header column. Check it out at "Greg Lief [G.L.A.D. Components for Borland Delphi and C++Builder developers]" http://www.greglief.com/delphi/components_specs.shtml I think there are other components in the DSP to do the same thing. Robert Khari Villela wrote in message <36D30091.DB55AB0D@nospam.com>... >TQuery's cannot be sorted in Delphi >your only options are to >1. re-run the query using different order by statements >2. Copy the data to a client dataSet and do indexing on it (easier, but >requres C/S) > >Stuart Cox wrote: > >> Hi, >> >> I originally access my DB using a simple TTable but I now need to select a >> set of records. I have tried using StartRange and EndRange BUT I want all >> records whose >> >> Field1 > Something and whose >> Field2 < SomethingElse >> >> It appears Ranges cannot handle this so off I go to TQuery. I can build the >> exact SQL Query I need quite easily but I also need to sort the records on >> various fields (depending on user decisions). Now, TTable has an IndexName >> which I can change depending on how I want to sort the data BUT TQuery has >> no equivalent. Any help would be much appreciated. >> >> Stuart Cox >
Technical Details
Message-ID:
<u%HA2.2475$xU3.369819668@dca1-nnrp1.news.digex.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7aeaob$qj3$1@lux.doc.ic.ac.uk> <36D30091.DB55AB0D@nospam.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,7a456c793e1fa17b X-Google-Attributes: gidffff5,public X-Google-Thread: 10de66,7a456c793e1fa17b X-Google-Attributes: gid10de66,public From: "Robert Kaplan" <rkaplan@iamerica.net> Subject: Re: Sorting Queries Date: 1999/02/24 Message-ID: <u%HA2.2475$xU3.369819668@dca1-nnrp1.news.digex.net> X-Deja-AN: 447699128 References: <7aeaob$qj3$1@lux.doc.ic.ac.uk> <36D30091.DB55AB0D@nospam.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Complaints-To: abuse@iamworld.net X-Trace: dca1-nnrp1.news.digex.net 919817306 208.252.48.100 (Tue, 23 Feb 1999 19:48:26 EDT) Organization: Advantage Software NNTP-Posting-Date: Tue, 23 Feb 1999 19:48:26 EDT Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers