🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.pascal.delphi.databases
3 messages
3 total messages Started by Stuart Cox Wed, 17 Feb 1999 00:00
Sorting Queries
#117
Author: Stuart Cox
Date: Wed, 17 Feb 1999 00:00
16 lines
1354 bytes
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
Re: Sorting Queries
#116
Author: Khari Villela
Date: Tue, 23 Feb 1999 00:00
24 lines
1523 bytes
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
Re: Sorting Queries
#115
Author: Robert Kaplan
Date: Wed, 24 Feb 1999 00:00
42 lines
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
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads