FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Sync xbrowser
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Sync xbrowser
Posted: Mon Dec 18, 2017 01:13 PM

Hi, all !

There are 2 xBrowser with arrays of the same size. How can I sync them when scrolling ?

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Sync xbrowser
Posted: Mon Dec 18, 2017 02:27 PM
Natter

Consider using
Code (fw): Select all Collapse
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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Sync xbrowser
Posted: Tue Dec 19, 2017 06:00 AM

Thank you for your help. It turned out

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Sync xbrowser
Posted: Tue Dec 19, 2017 08:37 AM
I am elaborating on Mr Rick's advice:
Code (fw): Select all Collapse
oBrw1:bChange := { || oBrw2:nArrayAt := oBrw1:nArrayAt, oBrw2:nRowSel := oBrw1:nRowSel, oBrw2:Refresh()}
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion