Interactive change event

2013-06-05 Thread Sytze de Boer
I'm having a problem with editing a memo file My code says trcask603=LEN(ALLTRIM(this.value)) thisform.label9.Caption="Description of project ("+ALLTRIM(STR(trcask603))+" size)" lines)" thisform.label9.Refresh For some reason, this then does not allow me to press the ENTER key The cursor

VFP9-Interactive change event

2009-01-26 Thread Sytze de Boer
I have a small form with 2 x textboxes and 1 x editboxes I want text2 to display the number of characters in the editbox So, in the interactivechange i have the statement thisform.text2.value=len(alltrim(mExpression))&& the variable in Edit1 thisform.refresh Nothing seems to work with this co

Re: Interactive change event

2013-06-05 Thread Ken Dibble
I'm having a problem with editing a memo file My code says trcask603=LEN(ALLTRIM(this.value)) thisform.label9.Caption="Description of project ("+ALLTRIM(STR(trcask603))+" size)" lines)" thisform.label9.Refresh For some reason, this then does not allow me to press the ENTER key The cur

Re: Interactive change event

2013-06-05 Thread Sytze de Boer
My apologies The interactive change event is indeed related to a EDIT/memo event and it should then display the number of characters The ENTER key is a reference to start a NEW LINE I have this working elsewhere without any issues, but in that instance, I do not ever want to start a new line

Re: Interactive change event

2013-06-05 Thread Ken Dibble
My apologies The interactive change event is indeed related to a EDIT/memo event and it should then display the number of characters The ENTER key is a reference to start a NEW LINE I have this working elsewhere without any issues, but in that instance, I do not ever want to start a new line

Re: Interactive change event

2013-06-05 Thread Ken Dibble
DEFINE CLASS MemoBox AS EditBox PROCEDURE InteractiveChange trcask603=LEN(ALLTRIM(this.value)) * Your original code below; it throws a Syntax error because * you have an uneven number of double quotes and/or a missing * plus (+) sign. *this

Re: Interactive change event

2013-06-05 Thread Sytze de Boer
when I run your code, it is fine. In my instance, the form is a SCX/SCT and it does not work I'll try it with the refresh() On Thu, Jun 6, 2013 at 2:19 PM, Ken Dibble wrote: > > My apologies >> >> The interactive change event is indeed related to a EDIT/memo event >

Re: VFP9-Interactive change event

2009-01-27 Thread Jean MAURICE
It is not sure that the variable is updated in the interactive change event. So you can try to write thisform.text2.value=len(alltrim(This.value)) The second problem is : interactive change event is fired only when a caracter is typed. So you must initialize text2 in the init of the form (for

Re: VFP9-Interactive change event

2009-01-27 Thread Tracy Pearson
Try thisform.text2.refresh() instead. Sytze de Boer wrote: > I have a small form with 2 x textboxes and 1 x editboxes > I want text2 to display the number of characters in the editbox > > So, in the interactivechange i have the statement > thisform.text2.value=len(alltrim(mExpression))&& the