xBrowse - Jump to a specific column

xBrowse - Jump to a specific column

Postby don lowenstein » 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
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm

Re: xBrowse - Jump to a specific column

Postby Colin Haig » Fri May 03, 2013 11:51 pm

Hi Don

oLbx:SelectCol(10)
oLbx:Refresh()

Hope that is what you meant.

Cheers

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: xBrowse - Jump to a specific column

Postby don lowenstein » Sat May 04, 2013 12:29 am

yes - thank you.
Don Lowenstein
www.laapc.com
User avatar
don lowenstein
 
Posts: 197
Joined: Mon Oct 17, 2005 9:09 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests