Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Joachim Bieler Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Change from bBrowser 1.5 to bBrowser 4 Date: Thu, 07 Mar 2013 20:12:58 +0100 Lines: 45 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net i+B2AyrNw+BrplXtL7k0tQxPQHfinaVsHHUm7nNlY864mtoXgQa+Eg1ZvurtvHL4a8 Cancel-Lock: sha1:Y11f0ol6UDcZ8pFoWV0eOzL2k2w= User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 In-Reply-To: Xref: csiph.com comp.lang.clipper.visual-objects:4886 Sebastian, you can replace your condition IF SELF:lSendCellEdit with the following one. if _And(self:iCallbackMethods, BCOCM_CELLEDIT)>0 I have test your described issue but cannot see any problem with bBrowser 4 and VO 2.8 SP4. Maybe you should check whether your workaround is still necessary. Regards, Joachim Bieler Am 06.03.2013 22:03, schrieb Wolverine: > After change from bBrowser 1.5 to bBrowser 4 we have a problem with this method: > > METHOD CellEdit(iMode AS INT) AS LOGIC PASCAL CLASS MybBrowser > > LOCAL cText:= NULL_STRING AS STRING > > IF SELF:lSendCellEdit > IF (iMode == BEDIT_END) > SELF:oEdit:__Update() > IF !IsNil(SELF:oEdit:FieldSpec) .AND. (SELF:oEdit:FieldSpec:ValType == "N") > cText:= StrTran(AllTrim(SELF:oEdit:TextValue), Chr(SetThousandSep()), NULL_STRING) > SELF:oEdit:Value:= Val(cText) > ENDIF > ENDIF > ENDIF > > RETURN SUPER:CellEdit(iMode) > > The lSendCellEdit does not exist anymore. > We use this method because we have problems with columns that have FieldSpec attached (i.e. with picture "999,999,999.99"). When we edit a value; first, a large value 100000000 and then change to 1200 and press Enter 1200 is 1,200.00 and because the comma is a illegal value. With this method we delete the commas. > Maybe we have wrong code but we need to fix this. Can anybody help us? > Thanks. > > Sebastián