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


Groups > comp.lang.clipper.visual-objects > #3116 > unrolled thread

Replicate error in bBrowser

Started byPower Neet <alwin@nederpelt.nl>
First post2012-03-08 14:03 -0800
Last post2012-03-15 05:49 +0100
Articles 3 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  Replicate error in bBrowser Power Neet <alwin@nederpelt.nl> - 2012-03-08 14:03 -0800
    Re: Replicate error in bBrowser "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-03-12 02:38 +1100
    Re: Replicate error in bBrowser Joachim Bieler <support@votools.com> - 2012-03-15 05:49 +0100

#3116 — Replicate error in bBrowser

FromPower Neet <alwin@nederpelt.nl>
Date2012-03-08 14:03 -0800
SubjectReplicate error in bBrowser
Message-ID<6f7aab78-c0e7-4a9e-a588-08daf893c5d9@i2g2000vbv.googlegroups.com>
In combination with inlineCalcSLE i descovered a bug in bBrowser.

CalculateWidth() in bBrowser sets default length to:
     cFormat := Replicate("9", iLength-iDecimals-1)+"."+Replicate("9",
iDecimals)

But when SetDecimal() is set excessive....:  SetDecimal() -> 15 and
digits stays simpel: SetDigit() -> 10
complete not logical !, but bBrowser crashes

ERROR CODE:  3 [ STRING OVERFLOW ]
SUBSYSTEM: BASE
FUNCTION: REPLICATE

And why ?
InlineCalcSLE contains functions like StringToFloat() with excessive
SetDecimal(), but never resets to original.....

Alwin

[toc] | [next] | [standalone]


#3121

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2012-03-12 02:38 +1100
Message-ID<bF37r.4348$v14.968@viwinnwfe02.internal.bigpond.com>
In reply to#3116
Alwin

> ERROR CODE:  3 [ STRING OVERFLOW ]
> SUBSYSTEM: BASE
> FUNCTION: REPLICATE

DBF Fields can handle only so many digits.
You may like/want to display big numbers but you'll need to use something 
other than DBF Fields to display them.

>     cFormat := Replicate("9", iLength-iDecimals-1)+"."+Replicate("9",
> iDecimals)
So what is the size of iLength & iDecimals??

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#3153

FromJoachim Bieler <support@votools.com>
Date2012-03-15 05:49 +0100
Message-ID<9sdal3F4j6U1@mid.individual.net>
In reply to#3116
Hello Alwin,

I tried to reproduce the problem without success. I defined a field in bArrayServer with the 
structure N, 18, 12 and shown it in the bBrowser. All works well. The bBrowser displayed the field 
value and I could change the field value without problems.

Please send me a test application (AEF file) with that I can reproduce the problem.

Which version of bBrowser and Visual Objects do you use?

I made my tests with bBrowser 3 Build 3.0.9.108 and Visual Objects 2.8 SP3.

Regards,

Joachim Bieler



Am 08.03.2012 23:03, schrieb Power Neet:
> In combination with inlineCalcSLE i descovered a bug in bBrowser.
>
> CalculateWidth() in bBrowser sets default length to:
>       cFormat := Replicate("9", iLength-iDecimals-1)+"."+Replicate("9",
> iDecimals)
>
> But when SetDecimal() is set excessive....:  SetDecimal() ->  15 and
> digits stays simpel: SetDigit() ->  10
> complete not logical !, but bBrowser crashes
>
> ERROR CODE:  3 [ STRING OVERFLOW ]
> SUBSYSTEM: BASE
> FUNCTION: REPLICATE
>
> And why ?
> InlineCalcSLE contains functions like StringToFloat() with excessive
> SetDecimal(), but never resets to original.....
>
> Alwin
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web