TxBrowse and aRows future

Post Reply
User avatar
Ugo
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

TxBrowse and aRows future

Post by Ugo »

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
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: TxBrowse and aRows future

Post by nageswaragunupudi »

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
Post Reply