Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #5332 > unrolled thread
| Started by | Krystian <softb@softb.pl> |
|---|---|
| First post | 2013-06-06 02:30 -0700 |
| Last post | 2013-06-19 15:29 -0700 |
| Articles | 8 — 3 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
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
| From | Krystian <softb@softb.pl> |
|---|---|
| Date | 2013-06-06 02:30 -0700 |
| Subject | Eval and barrayserver |
| Message-ID | <cecddb49-da31-46c1-9c77-3b2f672a2dc1@googlegroups.com> |
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
[toc] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2013-06-06 11:17 +0100 |
| Message-ID | <9lZrt.70037$rS3.65148@fx29.am4> |
| In reply to | #5332 |
On 06/06/2013 10:30, Krystian wrote:
> 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})
Is that really what you have? (with DBSCOPEALL inside the codeblock but
outside of the fieldput) (if it is intentional it seems odd the have 3
commas rather than 1)
Beyond that I cannot comment as I don't use bbrowser
> 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
>
[toc] | [prev] | [next] | [standalone]
| From | Krystian <softb@softb.pl> |
|---|---|
| Date | 2013-06-06 04:40 -0700 |
| Message-ID | <47d0de09-112b-49f7-a143-18bceb6c5919@googlegroups.com> |
| In reply to | #5333 |
W dniu czwartek, 6 czerwca 2013 12:17:41 UTC+2 użytkownik Malcolm G napisał:
> On 06/06/2013 10:30, Krystian wrote:
>
> > 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})
>
>
>
> Is that really what you have? (with DBSCOPEALL inside the codeblock but
>
> outside of the fieldput) (if it is intentional it seems odd the have 3
>
> commas rather than 1)
>
>
>
> Beyond that I cannot comment as I don't use bbrowser
>
>
>
> > 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
>
> >
Hi,
Malcolm, you are right with the notice about commas; i was so irritated for this tool, that i made a mistake. But the second example is correct; i change the place of the scope clause, put the for condition ({|| True}) but it still does not work.
Of course, it is simple to substitute it by do while statement, but it should work and i do not know why not.
Any other suggestions will be appreciated
Krystian
[toc] | [prev] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2013-06-06 14:12 +0100 |
| Message-ID | <7V%rt.26675$re5.9828@fx10.am4> |
| In reply to | #5334 |
On 06/06/2013 12:40, Krystian wrote:
> W dniu czwartek, 6 czerwca 2013 12:17:41 UTC+2 użytkownik Malcolm G napisał:
>> On 06/06/2013 10:30, Krystian wrote:
>>
>>> 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})
>>
>>
>>
>> Is that really what you have? (with DBSCOPEALL inside the codeblock but
>>
>> outside of the fieldput) (if it is intentional it seems odd the have 3
>>
>> commas rather than 1)
>>
>>
>>
>> Beyond that I cannot comment as I don't use bbrowser
>>
>>
>>
>>> 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
>>
>>>
>
> Hi,
> Malcolm, you are right with the notice about commas; i was so irritated for this tool, that i made a mistake. But the second example is correct; i change the place of the scope clause, put the for condition ({|| True}) but it still does not work.
> Of course, it is simple to substitute it by do while statement, but it should work and i do not know why not.
>
> Any other suggestions will be appreciated
Google finds
http://www.votools.de/english/bbrowser/help4.net/barrayserver_fieldput.htm
============
The new field value is not directly put into the data array, but put
into a temporary buffer up until the next movement and/or to call of the
method bArrayServer:Commit().
============
so what does a codeblock of
Server:FIELDPUT("Wybrany", FALSE),Server:Commit();
do
?
[toc] | [prev] | [next] | [standalone]
| From | Krystian <softb@softb.pl> |
|---|---|
| Date | 2013-06-06 07:38 -0700 |
| Message-ID | <f58b81dc-b08c-47f1-8e3a-f7e3649f9134@googlegroups.com> |
| In reply to | #5335 |
W dniu czwartek, 6 czerwca 2013 15:12:34 UTC+2 użytkownik Malcolm G napisał:
> On 06/06/2013 12:40, Krystian wrote:
>
> > W dniu czwartek, 6 czerwca 2013 12:17:41 UTC+2 użytkownik Malcolm G napisał:
>
> >> On 06/06/2013 10:30, Krystian wrote:
>
> >>
>
> >>> 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})
>
> >>
>
> >>
>
> >>
>
> >> Is that really what you have? (with DBSCOPEALL inside the codeblock but
>
> >>
>
> >> outside of the fieldput) (if it is intentional it seems odd the have 3
>
> >>
>
> >> commas rather than 1)
>
> >>
>
> >>
>
> >>
>
> >> Beyond that I cannot comment as I don't use bbrowser
>
> >>
>
> >>
>
> >>
>
> >>> 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
>
> >>
>
> >>>
>
> >
>
> > Hi,
>
> > Malcolm, you are right with the notice about commas; i was so irritated for this tool, that i made a mistake. But the second example is correct; i change the place of the scope clause, put the for condition ({|| True}) but it still does not work.
>
> > Of course, it is simple to substitute it by do while statement, but it should work and i do not know why not.
>
> >
>
> > Any other suggestions will be appreciated
>
>
>
> Google finds
>
>
>
> http://www.votools.de/english/bbrowser/help4.net/barrayserver_fieldput.htm
>
> ============
>
> The new field value is not directly put into the data array, but put
>
> into a temporary buffer up until the next movement and/or to call of the
>
> method bArrayServer:Commit().
>
> ============
>
> so what does a codeblock of
>
> Server:FIELDPUT("Wybrany", FALSE),Server:Commit();
>
> do
>
> ?
Hi,
Thank you very much;
you have more experience and better know that bizarre tool; i tried with the commit in a separate instruction, but it also does not work.
There is a statement in the manual, that also the movement is enough to actualize the record but if you compare the recno before and after the eval method, they are the same. I checked, that it works also with the simple ascription instruction (Server:field := uvalue).
Thanks
Krystian
[toc] | [prev] | [next] | [standalone]
| From | Malcolm G <malcolm-news2012delete@delete.jobstream.com> |
|---|---|
| Date | 2013-06-06 16:59 +0100 |
| Message-ID | <ml2st.62670$jM6.25071@fx13.am4> |
| In reply to | #5337 |
> Hi, > Thank you very much; > you have more experience and better know that bizarre tool; i tried with the commit in a separate instruction, but it also does not work. I have never used bbrowser - I simply read the help and guessed based on experience of other tools that the eval would not call skip. > There is a statement in the manual, that also the movement is enough to actualize the record but if you compare the recno before and after the eval method, they are the same. I checked, that it works also with the simple ascription instruction (Server:field := uvalue). > > Thanks > Krystian >
[toc] | [prev] | [next] | [standalone]
| From | Joachim Bieler <support@votools.com> |
|---|---|
| Date | 2013-06-11 13:20 +0200 |
| Message-ID | <b1ofgjF3qivU1@mid.individual.net> |
| In reply to | #5332 |
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
[toc] | [prev] | [next] | [standalone]
| From | Krystian <softb@softb.pl> |
|---|---|
| Date | 2013-06-19 15:29 -0700 |
| Message-ID | <7ade4b46-a444-406f-a46d-591ab01198f4@googlegroups.com> |
| In reply to | #5348 |
W dniu wtorek, 11 czerwca 2013 13:20:56 UTC+2 użytkownik Joachim Bieler napisał:
> 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
Hallo Joachim
I am sorry for may late replay; your answer shows the merits of the problem - thank you very much.
With regards
Krystian
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web