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


|