sorting Descending with IBQuery ?

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
abak
Posts: 29
Joined: Sat 18 Oct 2014 18:42

sorting Descending with IBQuery ?

Post by abak » Tue 18 Nov 2014 06:16

Hi,
How can i create an index Descending in IBQuery, for sorting data :
(not in the query sql)
Exemple :this gives Ascending sort:

ibQuery.indexFieldName:='myField';
Thx.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: sorting Descending with IBQuery ?

Post by ViktorV » Tue 18 Nov 2014 14:02

Please try using the following code to apply descending sorting:

Code: Select all

IBQuery.IndexFieldNames := 'myField DESC';
You can find more details in the IBDAC help: http://www.devart.com/ibdac/docs/index. ... dnames.htm

abak
Posts: 29
Joined: Sat 18 Oct 2014 18:42

Re: sorting Descending with IBQuery ?

Post by abak » Wed 19 Nov 2014 13:21

Thank you ViktoV.
So easy !

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: sorting Descending with IBQuery ?

Post by ViktorV » Wed 19 Nov 2014 14:04

Thank you for your interest to our product. Feel free to contact us if you have any further questions.

Post Reply