FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TxBrowse and aRows future
Posts: 283
Joined: Sat Oct 15, 2005 06:40 AM
TxBrowse and aRows future
Posted: Tue Oct 18, 2011 05:33 PM

Hi all,
i have a big dbf with relations filtered by "scope" in a XBrowse control.
Now i have need to see only some rows or i have need to see rows in a different order.
I think at aRows future but i not understood how use this future when the XBrowse is running.

Is possible?

Where i can found samples?

Thank you in advance for your reply.

Ciao, best regards,

Ugo
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TxBrowse and aRows future
Posted: Wed Oct 19, 2011 06:40 AM

Using aRows feature:

1. At runtime:

If the xbrowse of the DBF is already running and if we can make an array of record numbers to be shown,

Call oBrw:SetArray( aRecNos ) during runtime.
Reverse may not work :(

But you can dynamically change with another set of record numbers.
Second time onwords, simply oBrw:aArrayData := aNewRecNoArray and call oBrw:GoTop(), oBrw:Refresh( .t. )

2 Setting up XBrowse using aRows feature initially.

Assuming we already have an array of record numbers to show:

@ <r>, <c> XBROWSE <usual clauses> ALIAS "myalias" ROWS aRecNos.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion