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


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

Re: Eval and barrayserver

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Joachim Bieler <support@votools.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Eval and barrayserver
Date Tue, 11 Jun 2013 13:20:56 +0200
Lines 29
Message-ID <b1ofgjF3qivU1@mid.individual.net> (permalink)
References <cecddb49-da31-46c1-9c77-3b2f672a2dc1@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net +gZEIpa6yB1woABbQZBR3wGfPYTnKJEqKTO+aFKBHTUuRloPyz
Cancel-Lock sha1:JDQqmFhCTxhTdP6lrtLV8myMxro=
User-Agent Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
In-Reply-To <cecddb49-da31-46c1-9c77-3b2f672a2dc1@googlegroups.com>
Xref csiph.com comp.lang.clipper.visual-objects:5348

Show key headers only | 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