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
Tbrowse current row / column ?
Moderator: Rathinagiri
Re: Tbrowse current row / column ?
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
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 ?
I'm using Minigui Extended
I'll have a look and see if that works
I'll have a look and see if that works
Re: Tbrowse current row / column ?
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
obrw:ncell gives the column ( you need to count the selector column if used )
obrw:nAt gives the row offset