Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper > Re: TBrowse wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 9 of 13 Topic 3847 of 3903
Post > Topic >>

Re: TBrowse with Filter

by otto <ohaldi@[EMAIL PROTECTED] > Feb 26, 2008 at 07:57 PM

On Tue, 26 Feb 2008 01:48:02 GMT, "Stephen Quinn"
<stevejqNO@[EMAIL PROTECTED]
> wrote:

Hello Stephen,

>You'd use the SCOPE when you DON'T set a relation.

You are right. I send you the sample from the Comix help about the set
scope codeblock!. Nothing to do with my prg.

in fact I use  scope as main selection to see in my Tbrowse only
information about one customer and set filter to
as second filter to see specific information from the selected customer
with scope.


Before I used COMIX I did it like this:
-------------------------------------------
Select LIEFER
LIEFER->(OrdSetFocus("LIEFADR"))       // Index on the address number
SET FILTER TO (LIEFER->SR_NR == 0 .or. LIEFER->SR_NR == vSrNr) .and.
LIEFER->BETRAG # 0 .and. !LIEFER->BEZAHLT
LIEFER->(DbGoTop())
......
ob := TBrowseDb(2,1,11,40)     
......
ob:GoTopBlock    := { | | TBwhile("top",     Str(vAdNr,6) ) }
ob:GoBottomBlock := { | | TBwhile("bottom",  Str(vAdNr,6) ) }
ob:SkipBlock     := { |n| TBwhile("skip",    Str(vAdNr,6), ;
                        { |x|  LIEFER->ADR_NR == vAdNr }, n ) }  


and now with COMIX :
--------------------------
set scope to
set scope to { || Str(vAdNr,6) } 

SET FILTER TO (LIEFER->SR_NR == 0 .or. LIEFER->SR_NR == vSrNr) .and.
LIEFER->BETRAG # 0 .and. !LIEFER->BEZAHLT

LIEFER->(DbGoTop())
LIEFER->(DbSeek(Str(vAdNr,6)))
....
ob := TBrowseDb(2,1,11,40)     

Both solution work well. I used the Comix solution to see if it would be
faster on our Network. But l didn't see big change. Raison 
of my question in this news group. This database have about 5500 records.

Once again many thanks for you help.
Regards
Otto




 13 Posts in Topic:
TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-22 10:20:48 
Re: TBrowse with Filter
"N:dlzc D:aol T:com   2008-02-22 06:02:52 
Re: TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-22 19:56:58 
Re: TBrowse with Filter
"Stephen Quinn"  2008-02-22 23:40:59 
Re: TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-23 12:16:41 
Re: TBrowse with Filter
"Stephen Quinn"  2008-02-24 02:26:08 
Re: TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-25 21:03:13 
Re: TBrowse with Filter
"Stephen Quinn"  2008-02-26 01:48:02 
Re: TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-26 19:57:47 
Re: TBrowse with Filter
"AUGE_OHR" <  2008-02-26 21:05:36 
Re: TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-27 12:47:52 
Re: TBrowse with Filter
"Stephen Quinn"  2008-02-27 01:25:46 
Re: TBrowse with Filter
otto <ohaldi@[EMAIL PR  2008-02-27 12:46:39 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 10:09:27 CDT 2008.