Page 1 of 1

xBrowse - Jump to a specific column

PostPosted: Fri May 03, 2013 11:17 pm
by don lowenstein
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?

Re: xBrowse - Jump to a specific column

PostPosted: Fri May 03, 2013 11:51 pm
by Colin Haig
Hi Don

oLbx:SelectCol(10)
oLbx:Refresh()

Hope that is what you meant.

Cheers

Colin

Re: xBrowse - Jump to a specific column

PostPosted: Sat May 04, 2013 12:29 am
by don lowenstein
yes - thank you.