xBrowse 1203 nAt returns incorrect value Horozontal scroll

xBrowse 1203 nAt returns incorrect value Horozontal scroll

Postby Rick Lipkin » Mon Sep 09, 2013 9: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 ..

Image

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

Image

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

Thanks
Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll

Postby nageswaragunupudi » Tue Sep 10, 2013 8: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
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll

Postby Rick Lipkin » Tue Sep 10, 2013 1: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: Select all  Expand view

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
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll

Postby nageswaragunupudi » Tue Sep 10, 2013 2: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: Select all  Expand view

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: Select all  Expand view

cText := oLbxA:SelectedCol():Value
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse 1203 nAt returns incorrect value Horozontal scroll

Postby Rick Lipkin » Tue Sep 10, 2013 3:37 pm

Rao

Thank you!

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 88 guests