FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Force xBrowse sort.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Force xBrowse sort.
Posted: Thu May 08, 2014 02:02 AM
Guys:

I'm browsing an array that I load it unsorted:
Code (fw): Select all Collapse
   @ 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.
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Force xBrowse sort.
Posted: Thu May 08, 2014 04:14 AM

oBrw:aCols[3 ]:SETORDeR()

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Force xBrowse sort.
Posted: Sun May 11, 2014 11:34 PM
Richard:

Thank you for your reply but the code:
Code (fw): Select all Collapse
oBrw:aCols[3 ]:SETORDER()

Does not link, it says
Code (fw): Select all Collapse
Error: Unresolved external '_HB_FUN_SETORDER' referenced from ...


I'm using FiveWin 13.09. Any clues ? Thank you very much.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Force xBrowse sort (SOLVED).
Posted: Mon May 12, 2014 09:23 AM

Richard:

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

Continue the discussion