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


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

Character count in a NNN (240) character field

Started by"Jose F Zouain" <jfzouain@zetaconcepts.com>
First post2016-09-11 18:12 +0000
Last post2016-09-15 19:06 +0000
Articles 7 — 2 participants

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


Contents

  Character count in a NNN (240) character field "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2016-09-11 18:12 +0000
    Re: Character count in a NNN (240) character field "Jamal" <noooospam@example.com> - 2016-09-11 22:40 -0400
      Re: Character count in a NNN (240) character field "Jamal" <noooospam@example.com> - 2016-09-13 15:29 -0400
        Re: Character count in a NNN (240) character field "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2016-09-14 20:33 +0000
          Re: Character count in a NNN (240) character field "Jamal" <noooospam@example.com> - 2016-09-14 17:48 -0400
            Re: Character count in a NNN (240) character field "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2016-09-15 00:02 +0000
              Re: Character count in a NNN (240) character field "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2016-09-15 19:06 +0000

#9725 — Character count in a NNN (240) character field

From"Jose F Zouain" <jfzouain@zetaconcepts.com>
Date2016-09-11 18:12 +0000
SubjectCharacter count in a NNN (240) character field
Message-ID<e3ll50F8eikU1@mid.individual.net>
Hi All

I never post here, always reading for the last years to see what is new.
Well I am a little bit rusty, and maybe I can do it but do not want to
re-invent the wheel.

Long time ago replace all my memo fields for charters fields of 240 in
length, I know that someone has done this.
Would like to display to the user how many characters he is inputing in
the field, like every time he types it shows 10/240, 11/240 and so on.

Can some one send me that code to include in my program.
Thanks in advance.

Jose Zouain

[toc] | [next] | [standalone]


#9726

From"Jamal" <noooospam@example.com>
Date2016-09-11 22:40 -0400
Message-ID<nr54jj$h2r$1@news.albasani.net>
In reply to#9725
Use EditChange( ) call back method:

method EditChange(oControlEvent) class MainDialog
    local oControl as Control
    oControl := IIf(oControlEvent == NULL_OBJECT, NULL_OBJECT, 
oControlEvent:Control)
    super:EditChange(oControlEvent)
    //Put your changes here

    self:oDCMELKeyCount:TextValue := 
NTrim(SLen(AllTrim(self:oDCMultiLineEdit1:CurrentText)))  + "/" + 
NTrim(oDCMultiLineEdit1:TextLimit)

    return NIL

The screen design will be your homework! <g>

Jamal

"Jose F Zouain"  wrote in message news:e3ll50F8eikU1@mid.individual.net...

Hi All

I never post here, always reading for the last years to see what is new.
Well I am a little bit rusty, and maybe I can do it but do not want to
re-invent the wheel.

Long time ago replace all my memo fields for charters fields of 240 in
length, I know that someone has done this.
Would like to display to the user how many characters he is inputing in
the field, like every time he types it shows 10/240, 11/240 and so on.

Can some one send me that code to include in my program.
Thanks in advance.

Jose Zouain

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


#9733

From"Jamal" <noooospam@example.com>
Date2016-09-13 15:29 -0400
Message-ID<nr9k3d$ho1$1@news.albasani.net>
In reply to#9726
Did this work for you?

"Jamal"  wrote in message news:nr54jj$h2r$1@news.albasani.net... 

Use EditChange( ) call back method:

method EditChange(oControlEvent) class MainDialog
    local oControl as Control
    oControl := IIf(oControlEvent == NULL_OBJECT, NULL_OBJECT, 
oControlEvent:Control)
    super:EditChange(oControlEvent)
    //Put your changes here

    self:oDCMELKeyCount:TextValue := 
NTrim(SLen(AllTrim(self:oDCMultiLineEdit1:CurrentText)))  + "/" + 
NTrim(oDCMultiLineEdit1:TextLimit)

    return NIL

The screen design will be your homework! <g>

Jamal

"Jose F Zouain"  wrote in message news:e3ll50F8eikU1@mid.individual.net...

Hi All

I never post here, always reading for the last years to see what is new.
Well I am a little bit rusty, and maybe I can do it but do not want to
re-invent the wheel.

Long time ago replace all my memo fields for charters fields of 240 in
length, I know that someone has done this.
Would like to display to the user how many characters he is inputing in
the field, like every time he types it shows 10/240, 11/240 and so on.

Can some one send me that code to include in my program.
Thanks in advance.

Jose Zouain

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


#9734

From"Jose F Zouain" <jfzouain@zetaconcepts.com>
Date2016-09-14 20:33 +0000
Message-ID<e3tqhbF78udU1@mid.individual.net>
In reply to#9733
Hi Jamal
Yes, it worked, the only I have to do is replace the
oDCMultiLineEdit1:TextLimit, with real value of the column in the
server.

Example MLENOTE == Character (240).
How can I get that.

Thnaks 
Jose

Jamal wrote:

> Did this work for you?
> 
> "Jamal"  wrote in message news:nr54jj$h2r$1@news.albasani.net...
> Use EditChange( ) call back method:
> 
> method EditChange(oControlEvent) class MainDialog
>    local oControl as Control
>   oControl := IIf(oControlEvent == NULL_OBJECT, NULL_OBJECT,
> oControlEvent:Control)    super:EditChange(oControlEvent)
>    //Put your changes here
> 
>  self:oDCMELKeyCount:TextValue :=
> NTrim(SLen(AllTrim(self:oDCMultiLineEdit1:CurrentText)))  + "/" +
> NTrim(oDCMultiLineEdit1:TextLimit)
> 
>    return NIL
> 
> The screen design will be your homework! <g>
> 
> Jamal

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


#9736

From"Jamal" <noooospam@example.com>
Date2016-09-14 17:48 -0400
Message-ID<nrcgj6$u2k$1@news.albasani.net>
In reply to#9734
You need to create a fieldspec for the column (field) and assign it in the 
Properties window,
then set self:oDCMultiLineEdit1:TextLimit := 
self:oDCMultiLineEdit1:FieldSpec:length  in the PostInit( ) method of the 
owner dialog window.

I tested it and it works.

Jamal

"Jose F Zouain"  wrote in message news:e3tqhbF78udU1@mid.individual.net...


Hi Jamal
Yes, it worked, the only I have to do is replace the
oDCMultiLineEdit1:TextLimit, with real value of the column in the
server.

Example MLENOTE == Character (240).
How can I get that.

Thnaks
Jose

Jamal wrote:

> Did this work for you?
>
> "Jamal"  wrote in message news:nr54jj$h2r$1@news.albasani.net...
> Use EditChange( ) call back method:
>
> method EditChange(oControlEvent) class MainDialog
>    local oControl as Control
>   oControl := IIf(oControlEvent == NULL_OBJECT, NULL_OBJECT,
> oControlEvent:Control)    super:EditChange(oControlEvent)
>    //Put your changes here
>
>  self:oDCMELKeyCount:TextValue :=
> NTrim(SLen(AllTrim(self:oDCMultiLineEdit1:CurrentText)))  + "/" +
> NTrim(oDCMultiLineEdit1:TextLimit)
>
>    return NIL
>
> The screen design will be your homework! <g>
>
> Jamal

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


#9737

From"Jose F Zouain" <jfzouain@zetaconcepts.com>
Date2016-09-15 00:02 +0000
Message-ID<e3u6p0Fa19lU1@mid.individual.net>
In reply to#9736
Jamal wrote:

> 
> You need to create a fieldspec for the column (field) and assign it
> in the Properties window, then set self:oDCMultiLineEdit1:TextLimit
> := self:oDCMultiLineEdit1:FieldSpec:length  in the PostInit( ) method
> of the owner dialog window.
> 
> I tested it and it works.
> 
> Jamal


Hey Jamal

Thanks again, I will test this tomorrow.

Jose

-- 

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


#9739

From"Jose F Zouain" <jfzouain@zetaconcepts.com>
Date2016-09-15 19:06 +0000
Message-ID<e409pfFpdr4U1@mid.individual.net>
In reply to#9737
Jose F Zouain wrote:

> Jamal wrote:
> 
> > 
> > You need to create a fieldspec for the column (field) and assign it
> > in the Properties window, then set self:oDCMultiLineEdit1:TextLimit
> > := self:oDCMultiLineEdit1:FieldSpec:length  in the PostInit( )
> > method of the owner dialog window.
> > 
> > I tested it and it works.
> > 
> > Jamal
> 
> 
> Hey Jamal
> 
> Thanks again, I will test this tomorrow.
> 
> Jose

Hi Jamal

All is working as designed, thnaks a lot for your help.

Jose

-- 

[toc] | [prev] | [standalone]


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


csiph-web