If user select a header to sort on or change ascending/descending order, how do I get xbrowse to always perform a oXbrw:goTop() afterwards?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
BCC5.82/BCC7.3
xHarbour/Harbour
If user select a header to sort on or change ascending/descending order, how do I get xbrowse to always perform a oXbrw:goTop() afterwards?
oBrw:bOnSort := { |o| o:GoTop() }Thanks for the prompt reply Rao.
But doesn't seem to work with FWH11.08. I ended up with an extra column called BONSORT
Sorry, FWH11.08 is more than ten year old and did not support this.
Let me see the source code of FWH1108 and advise you.
oBrw:bLClickHeaders := { |r,c,f,o| If( EMPTY( o:cOrder ),,(o:oBrw:GoTop(),o:oBrw:Refresh() ) ) }Thank you very much Rao. It works!
On another topic, is it possible to get a sorting based on a group of column ?
For example, if click on header of col A, sorting is actually col A+col B>
TIA
DBF files?
Yes. Is it as simple as creating an index with the expression A+B?
hua wrote:Yes. Is it as simple as creating an index with the expression A+B?
Thank you very much Rao!