Sync xbrowser

Sync xbrowser

Postby Natter » Mon Dec 18, 2017 1:13 pm

Hi, all !

There are 2 xBrowser with arrays of the same size. How can I sync them when scrolling ?
Natter
 
Posts: 1111
Joined: Mon May 14, 2007 9:49 am

Re: Sync xbrowser

Postby Rick Lipkin » Mon Dec 18, 2017 2:27 pm

Natter

Consider using
Code: Select all  Expand view

oLbx:bChange   := { || _DoSomething() }
 


Add this codeblock to the xBrowse you want to scroll and insert your code ( _DoSomething() )in the code block to find the matching records in xBrowse 2

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

Re: Sync xbrowser

Postby Natter » Tue Dec 19, 2017 6:00 am

Thank you for your help. It turned out
Natter
 
Posts: 1111
Joined: Mon May 14, 2007 9:49 am

Re: Sync xbrowser

Postby nageswaragunupudi » Tue Dec 19, 2017 8:37 am

I am elaborating on Mr Rick's advice:
Code: Select all  Expand view
oBrw1:bChange := { || oBrw2:nArrayAt := oBrw1:nArrayAt, oBrw2:nRowSel := oBrw1:nRowSel, oBrw2:Refresh()}
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 15 guests