FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse - Jump to a specific column
Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
xBrowse - Jump to a specific column
Posted: Fri May 03, 2013 11:17 PM

I have an xbrowse that begins by displaying column 1 (as normal).

There are over 1000 fields in a particular database.

Users can specify which column they wish to see (column 500 for example) without scrolling to the right looking for certain values.

Question --

What is the best way to "move" my browse display from column 1 to column 500 so that my users can now view the data in column 500?

I've tried to modify the obrw:ncolsel variable, but, upon a paint() command the internals of the browse are reset 1 - the previous ncolsel value.

What I'm trying to avoid the slowness of "GoRight" 499 times, if possible.

is there a method available that will "GoToColumn( nCol )" or something like that?

Don Lowenstein
www.laapc.com
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Re: xBrowse - Jump to a specific column
Posted: Fri May 03, 2013 11:51 PM

Hi Don

oLbx:SelectCol(10)
oLbx:Refresh()

Hope that is what you meant.

Cheers

Colin

Posts: 204
Joined: Mon Oct 17, 2005 09:09 PM
Re: xBrowse - Jump to a specific column
Posted: Sat May 04, 2013 12:29 AM

yes - thank you.

Don Lowenstein
www.laapc.com

Continue the discussion