Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!news.osn.de!diablo2.news.osn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Joachim Bieler Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Replicate error in bBrowser Date: Thu, 15 Mar 2012 05:49:32 +0100 Lines: 40 Message-ID: <9sdal3F4j6U1@mid.individual.net> References: <6f7aab78-c0e7-4a9e-a588-08daf893c5d9@i2g2000vbv.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net TTcY3H8DI7LpDLWOgPaU5A1F0LOGZfVV56w2mLRIjhY58GT4pu Cancel-Lock: sha1:bcbLhWwqM+sQebV9pY44UAvgGBg= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <6f7aab78-c0e7-4a9e-a588-08daf893c5d9@i2g2000vbv.googlegroups.com> Xref: csiph.com comp.lang.clipper.visual-objects:3153 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 > >