Page 1 of 1
TIBQuery and Sort
Posted: Thu 29 May 2014 14:53
by alexhaifa
Hello,
I'd like to know if it is possible after opening a query sort it by field without close and
open it again. Like Adoquery allows with Adoquery.sort := 'field asc';
thanks
Alexandre
Re: TIBQuery and Sort
Posted: Fri 30 May 2014 10:02
by PavloP
Yes, there is such a capability in IBDAC. Set the needed value for the IndexFieldNames property of the TIBCQuery component, for example:
Code: Select all
IBCQuery1.IndexFieldNames := 'field1';
This will lead to records sorting in the dataset without closing it.
See more details in our documentation:
http://www.devart.com/ibdac/docs/index. ... dnames.htm
Re: TIBQuery and Sort
Posted: Sat 31 May 2014 01:05
by alexhaifa
Hello PavloP,
Thanks for your reply. But I am having some problem with this.
My language is portuguese and I have some accented words, when I make a query
I order the query this way:
ORDER BY FIELD ASC COLLATE PT_PT
The collate avoid obey accented word and give a correct order, when I tried your tip,
it worked without any collate possibility. I really need the collate PT_PT to avoid ordering the query abeying accented words. Is there any way to do this?
Thanks
Alexandre
Re: TIBQuery and Sort
Posted: Mon 02 Jun 2014 19:48
by alexhaifa
Hello,
Don't worry
I have found the solution

)
DataSet1.IndexFieldNames := 'LastName ASC CIS; DateDue DESC';
http://www.devart.com/ibdac/docs/index. ... tions).htm
Re: TIBQuery and Sort
Posted: Tue 03 Jun 2014 09:36
by PavloP
It is good to see that the problem has been solved.
If any other questions come up, please contact us.