TxBrowse and aRows future

TxBrowse and aRows future

Postby Ugo » Tue Oct 18, 2011 5: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
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Re: TxBrowse and aRows future

Postby nageswaragunupudi » Wed Oct 19, 2011 6: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
User avatar
nageswaragunupudi
 
Posts: 10631
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 118 guests