Tbrowse current row / column ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
spelman
Posts: 20
Joined: Thu Sep 22, 2011 5:38 pm

Tbrowse current row / column ?

Post 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
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Tbrowse current row / column ?

Post 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
spelman
Posts: 20
Joined: Thu Sep 22, 2011 5:38 pm

Re: Tbrowse current row / column ?

Post by spelman »

I'm using Minigui Extended
I'll have a look and see if that works
spelman
Posts: 20
Joined: Thu Sep 22, 2011 5:38 pm

Re: Tbrowse current row / column ?

Post 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
Post Reply