Page 1 of 1

Tbrowse current row / column ?

Posted: Fri May 11, 2012 12:22 pm
by spelman
Hi everybody

When using Tbrowse, is there a property which gives the current row and column ?

I'm sure I saw one a while ago when looking through the help files, but I can't seem
to find it now ....

Thanks

Re: Tbrowse current row / column ?

Posted: Fri May 11, 2012 3:27 pm
by mol
Do you mean TBrowse class from clipper 5?
If yes, there are to exported instance variables:
colPos - contains a numeric value indicating tha data column whre the browse cursor is currently located. Columns are numbered from one, starting from the leftmost column.

rowPos - contains a numeric value indicating the data row where the browse cursor is currently located. Data rows are numbered from one, starting with the topmost data row. Screen rows containing headings, footings or separators are not considered data rows.
(from CA-CLIPPPER Reference Guide, Vol.2 2-666-667)

Regards, Marek

Re: Tbrowse current row / column ?

Posted: Fri May 11, 2012 3:37 pm
by spelman
I'm using Minigui Extended
I'll have a look and see if that works

Re: Tbrowse current row / column ?

Posted: Tue May 15, 2012 6:32 pm
by spelman
Looking through the source code I found what I think is the answer ...

obrw:ncell gives the column ( you need to count the selector column if used )

obrw:nAt gives the row offset