FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Scoped xbrowse
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Scoped xbrowse
Posted: Wed Sep 11, 2013 09:29 PM

Guys:

Using the XBROWSE() function: how can I create a scoped filter ? Thank you.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Scoped xbrowse
Posted: Wed Sep 11, 2013 11:00 PM

Use a scoped index.

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Scoped xbrowse
Posted: Thu Sep 12, 2013 10:08 AM

James:

Thank you for your reply, but maybe my question was not clear at all: I need to know if XBROWSE() have any data or parameter to allow for the display of a subset of records (maybe based on key value). Thank you.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Scoped xbrowse
Posted: Thu Sep 12, 2013 11:05 AM

Hunter,

Why can't you use a scoped index for that? Maybe you are using an array?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Scoped xbrowse
Posted: Thu Sep 12, 2013 02:01 PM
HunterEC wrote:James:

Thank you for your reply, but maybe my question was not clear at all: I need to know if XBROWSE() have any data or parameter to allow for the display of a subset of records (maybe based on key value). Thank you.


No
You need to set your own scopes or filters on the data to be browsed.
Regards



G. N. Rao.

Hyderabad, India
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Scoped xbrowse
Posted: Thu Sep 12, 2013 02:05 PM
Hunter

Hope this is what you are looking for ...

Rick Lipkin

Code (fw): Select all Collapse
#Include "Ord.ch"

...
...

Select 1
Use Customer via "DBFCDX" SHARED
Set Order to Tag State

cState := "SC"

Set Scope to cState
Go Top

xBrowse()

CLose Databases
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Scoped xbrowse
Posted: Thu Sep 12, 2013 08:59 PM

James, Rao, Rick:

Thank you all. I thought XBROWSE() has a data to do this but your index based solutions is what I'd been using. Thank you very much.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Scoped xbrowse
Posted: Fri Sep 13, 2013 12:16 AM

Hunter,

The older TWBrowse had crude scope settings built-in, but that was done probably before NTXs had scoping (probably when most of us were still using Clipper). Most everyone is using CDXs now, but even NTXs have scopes under (x)Harbour so there is no need for scoping in browse objects.

Anyway, that is my guess.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Scoped xbrowse
Posted: Fri Sep 13, 2013 03:23 AM
James Bott wrote:Hunter,

The older TWBrowse had crude scope settings built-in, but that was done probably before NTXs had scoping (probably when most of us were still using Clipper). Most everyone is using CDXs now, but even NTXs have scopes under (x)Harbour so there is no need for scoping in browse objects.

Anyway, that is my guess.

James


You are totally right Mr. James. That is exactly the reason.
In addition, in the earlier days all browsers were primarily aimed at browsing DBFs, whereas xbrowse is more generic.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion