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 7 of 13 Topic 3847 of 3903
Post > Topic >>

Re: TBrowse with Filter

by otto <ohaldi@[EMAIL PROTECTED] > Feb 25, 2008 at 09:03 PM

On Sun, 24 Feb 2008 02:26:08 GMT, "Stephen Quinn"
<stevejqNO@[EMAIL PROTECTED]
> wrote:

>Otto
>
>Your scope command is incorrect then
>    > set scope to { || Str(SFAKTU->ADR_NR,6) }
>
>should be
>    cText := Str(SFAKTU->ADR_NR,6)
>    SET SCOPE TO cText
>or
>    SET SCOPE TO ( cText )
>
>It shouldn't be a codelock IIRC (check the (cmx?).ch file for the syntax)
>    - the SET SCOPE command cannot execute a codeblock it just does a
conversion,
>        probably why your filtering the whole database
>        (ie because the SCOPE is failing to take).
>
>The only time I've ever used custom skipblocks is when browsing arrays,
I've never had a need to use them when browsing 
>DBFs.

Hello Stephen,

>It shouldn't be a codelock
>
Stange, because, the sample show a codeblock. I also chanded to you
solution. But do the same.

Example from the help:

        //  Use the CodeBlock for scope capability
    use invoice new

    use customer new
    set relation to customer->cid into invoice

    sele invoice
    set order to tag cid
    set scope to { || customer->cid }

etc....

Many thanks  for your quick help
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 9:49:35 CDT 2008.