Force xBrowse sort.

Post Reply
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Force xBrowse sort.

Post by HunterEC »

Guys:

I'm browsing an array that I load it unsorted:

Code: Select all

   @ 10,10 XBROWSE oBrw OF oDlg;
      SIZE 205,223 PIXEL ;
      HEADERS { "", "", "Header 3" } ;
      ARRAY acArray AUTOCOLS AUTOSORT
 
Even tough I'm displaying only the third column, how can I force the xBrowse to be displayed sorted as if the user has clicked the column header ?

Thank you.
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Force xBrowse sort.

Post by Richard Chidiak »

oBrw:aCols[3 ]:SETORDeR()

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Force xBrowse sort.

Post by HunterEC »

Richard:

Thank you for your reply but the code:

Code: Select all

oBrw:aCols[3 ]:SETORDER()
 
Does not link, it says

Code: Select all

Error: Unresolved external '_HB_FUN_SETORDER' referenced from ...
I'm using FiveWin 13.09. Any clues ? Thank you very much.
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Force xBrowse sort (SOLVED).

Post by HunterEC »

Richard:

My mistake. A typo prevented this from working. Your solution worked flawlessly. Thank you very much !
Post Reply