Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #10211
| From | "Jose F Zouain" <jfzouain@zetaconcepts.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | MultiLineEdit inherit from RichEdit - no text limit working |
| Date | 2017-02-24 00:58 +0000 |
| Message-ID | <eh9epcFl2d6U1@mid.individual.net> (permalink) |
Hi All
I have a Dialog Window that has a MultiLineEdit control that inherit
from RichEdit.
All is working OK, except I cannot limit the characters in the MLE.
By default RichEdit has 30 K characters, but I want to limit it to 240
Char.
Have done all I can possibly do, but it keeps adding beyond the 240
char.
Here is is the code for the Change edit, with all my tries, need a
helping hand. Thanks in advance
Jose
METHOD EditChange(oControlEvent) CLASS FAPeriodFormWA
LOCAL oControl AS Control
oControl := IIF(oControlEvent == NULL_OBJECT, NULL_OBJECT,
oControlEvent:Control)
SUPER:EditChange(oControlEvent)
IF oControl:NameSym == #ACCDNOTA
//Set field lenght limit
//SELF:oDCACCDNOTA:TextLimit := SELF:oDCACCDNOTA:FieldSpec:length
SELF:oDCACCDNOTA:TextLimit := 240
//SELF:oDCACCDNOTA:FieldSpec:length:SetRange(0, 240, )
//SELF:oDCACCDNOTA:FieldSpec:SetRange(0,240)
//Display KeyCount in screen
//SELF:oDCSLEKeyCount:TextValue :=
NTrim(SLen(AllTrim(SELF:oDCACCDNOTA:CurrentText))) + "/" +
NTrim(SELF:oDCACCDNOTA:TextLimit)
SELF:oDCSLEKeyCount:TextValue :=
NTrim(SLen(AllTrim(SELF:oDCACCDNOTA:CurrentText))) + "/240"
ENDIF
Back to comp.lang.clipper.visual-objects | Previous | Next — Next in thread | Find similar | Unroll thread
MultiLineEdit inherit from RichEdit - no text limit working "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2017-02-24 00:58 +0000
Re: MultiLineEdit inherit from RichEdit - no text limit working "Jamal" <noooospam@example.com> - 2017-02-23 23:04 -0500
Re: MultiLineEdit inherit from RichEdit - no text limit working D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2017-02-24 14:03 +0100
Re: MultiLineEdit inherit from RichEdit - no text limit working "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2017-02-24 19:26 +0000
Re: MultiLineEdit inherit from RichEdit - no text limit working "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2017-02-27 15:20 +0000
Re: MultiLineEdit inherit from RichEdit - no text limit working Sherlock <sherlock@sherlock.com.au> - 2017-02-27 08:55 -0800
Re: MultiLineEdit inherit from RichEdit - no text limit working "Jose F Zouain" <jfzouain@zetaconcepts.com> - 2017-02-28 18:31 +0000
Re: MultiLineEdit inherit from RichEdit - no text limit working Sherlock <sherlock@sherlock.com.au> - 2017-03-01 04:48 -0800
csiph-web