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


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

Change from bBrowser 1.5 to bBrowser 4

Started byWolverine <ccyasa.sbassano@gmail.com>
First post2013-03-06 13:03 -0800
Last post2013-03-13 05:07 -0700
Articles 4 — 4 participants

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


Contents

  Change from bBrowser 1.5 to bBrowser 4 Wolverine <ccyasa.sbassano@gmail.com> - 2013-03-06 13:03 -0800
    Re: Change from bBrowser 1.5 to bBrowser 4 "richard.townsendrose" <richard.townsendrose@gmail.com> - 2013-03-07 02:24 -0800
    Re: Change from bBrowser 1.5 to bBrowser 4 Joachim Bieler <support@votools.com> - 2013-03-07 20:12 +0100
      Re: Change from bBrowser 1.5 to bBrowser 4 ccyasa.sbassano@gmail.com - 2013-03-13 05:07 -0700

#4879 — Change from bBrowser 1.5 to bBrowser 4

FromWolverine <ccyasa.sbassano@gmail.com>
Date2013-03-06 13:03 -0800
SubjectChange from bBrowser 1.5 to bBrowser 4
Message-ID<c0a8838a-9668-41e4-acc8-9b340e1e1675@googlegroups.com>
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

[toc] | [next] | [standalone]


#4881

From"richard.townsendrose" <richard.townsendrose@gmail.com>
Date2013-03-07 02:24 -0800
Message-ID<8158c486-e25c-45d1-933e-0fdc35aa3a53@googlegroups.com>
In reply to#4879
Sebastian

lSendCellEdit isn't in bbrowser 3 either ...

but i did find it in my may 2006 code backups ...

my guess is that whatever problem you had, joachim has fixed it, so try just leaving that method out.

we have had to do this for a number of things like displaying vertical scroll bars.

richard

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


#4886

FromJoachim Bieler <support@votools.com>
Date2013-03-07 20:12 +0100
Message-ID<aps75pF3c09U1@mid.individual.net>
In reply to#4879
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

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


#4902

Fromccyasa.sbassano@gmail.com
Date2013-03-13 05:07 -0700
Message-ID<264627f0-5979-4136-bce5-ceb91d2659c1@googlegroups.com>
In reply to#4886
El jueves, 7 de marzo de 2013 16:12:58 UTC-3, Joachim Bieler  escribió:
> 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

Thanks, finally we made some changes in some CellEdit methods of our windows and the problem is fixed. The problem was with that <oWindow>:CellEdit(...) methods.

[toc] | [prev] | [standalone]


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


csiph-web