Page 1 of 1

Force xBrowse sort.

Posted: Thu May 08, 2014 2:02 am
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.

Re: Force xBrowse sort.

Posted: Thu May 08, 2014 4:14 am
by Richard Chidiak
oBrw:aCols[3 ]:SETORDeR()

Hth

Richard

Re: Force xBrowse sort.

Posted: Sun May 11, 2014 11:34 pm
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.

Re: Force xBrowse sort (SOLVED).

Posted: Mon May 12, 2014 9:23 am
by HunterEC
Richard:

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