Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5348

Re: Eval and barrayserver

From Joachim Bieler <support@votools.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Eval and barrayserver
Date 2013-06-11 13:20 +0200
Message-ID <b1ofgjF3qivU1@mid.individual.net> (permalink)
References <cecddb49-da31-46c1-9c77-3b2f672a2dc1@googlegroups.com>

Show all headers | View raw


Hello Krystian,

the problem is the codeblock. The return value of the evaluated codeblock is FALSE because the 
return value of bArrayServer:FieldPut() is the passed field value, in your case FALSE. The method 
bArrayServer:Eval() breaks when the return value of the codeblock is FALSE.

You can solve the problem with the following codeblock:

lret := SELF:srv_koszt:Eval({|Server| Server:FIELDPUT("Wybrany", FALSE), TRUE}, , , DBSCOPEALL)

Regards,
Joachim Bieler



Am 06.06.2013 11:30, schrieb Krystian:
> Hallo,
>
> There is a barrayserver in bbrowser; field "Wybrany" is logical.
> What is wrong in this sentences (called from CaptionClick method) :
> lret := SELF:srv_koszt:Eval({|Server| Server:FIELDPUT("Wybrany", FALSE),,, DBSCOPEALL})
>
> lret := SELF:srv_koszt:Eval({|Server| Server:Wybrany := FALSE})
>
> in both cases lret is false and only the first record is cleared.
>
> Thanks in advance
> Krystian

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Eval and barrayserver Krystian <softb@softb.pl> - 2013-06-06 02:30 -0700
  Re: Eval and barrayserver Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2013-06-06 11:17 +0100
    Re: Eval and barrayserver Krystian <softb@softb.pl> - 2013-06-06 04:40 -0700
      Re: Eval and barrayserver Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2013-06-06 14:12 +0100
        Re: Eval and barrayserver Krystian <softb@softb.pl> - 2013-06-06 07:38 -0700
          Re: Eval and barrayserver Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2013-06-06 16:59 +0100
  Re: Eval and barrayserver Joachim Bieler <support@votools.com> - 2013-06-11 13:20 +0200
    Re: Eval and barrayserver Krystian <softb@softb.pl> - 2013-06-19 15:29 -0700

csiph-web