Page 1 of 1

TxBrowse and aRows future

Posted: Tue Oct 18, 2011 5:33 pm
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.

Re: TxBrowse and aRows future

Posted: Wed Oct 19, 2011 6:40 am
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.