FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse 1203 nAt returns incorrect value Horozontal scroll
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
xBrowse 1203 nAt returns incorrect value Horozontal scroll
Posted: Mon Sep 09, 2013 09:50 PM
To All

I am using FWH1203 and I have noticed that nAt returns the incorrect value when you horizontally scroll past the original visible columns.

In my first picture you see the cursor in the 4:30 ( click here ) column and nAt returns the correct column value ..



When I move the horizontal bar to the right to view additional columns nAt returns the 3:00 column ..



I am using an older version of FWH .. I am hoping this has been fixed recently ?

Thanks
Rick Lipkin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll
Posted: Tue Sep 10, 2013 08:42 AM

Mr Rick

I shall look into nAt issue.
But I advise you not to refer to columns in numbers in xbrowse.
Best way to use is to use oBrw:SelectedCol()

oBrw:SelectedCol():cHeader always gives u the right value.

Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll
Posted: Tue Sep 10, 2013 01:14 PM
Rao

Thank you for your quick response .. Unfortunately, I do not necessarily need the column header but the column number to then extract the value ( data\text ) of the cell ..

Code (fw): Select all Collapse
nColumn := oLbxA:nAt
cText  := oLbxA:aCols[ nColumn ]:Value // returns the value of the current row for a column


Any other suggestions would be welcome.

Rick Lipkin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll
Posted: Tue Sep 10, 2013 02:03 PM
Rick Lipkin wrote:Rao

Thank you for your quick response .. Unfortunately, I do not necessarily need the column header but the column number to then extract the value ( data\text ) of the cell ..

Code (fw): Select all Collapse
nColumn := oLbxA:nAt
cText  := oLbxA:aCols[ nColumn ]:Value // returns the value of the current row for a column


Any other suggestions would be welcome.

Rick Lipkin


Answer:
Code (fw): Select all Collapse
cText := oLbxA:SelectedCol():Value
Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll
Posted: Tue Sep 10, 2013 03:37 PM

Rao

Thank you!

Rick Lipkin

Continue the discussion