Page 1 of 2

there is some limitation on the length of the information in a control edit

Posted: Thu Mar 14, 2019 5:21 pm
by martingz
El control edit tiene alguna limitante al cargar una informacion

Tengo un campo memo con mas de 6000 caracteres, al cargarlo en una variable toma todos, pero cuando trato de agregarlos a un control edit, solo me carga unos 4500, pero si despues de cargarlos , sigo insertanto caracteres y lineas manualmente , lo hace, pero nunca me carga la primera informacion


saludos

google translation
there is some limitation on the length of the information in a control edit
I have at least 6000 characters in a memo field, when I read it I can load all in one variable, but when I pass them to the edit control, I only load about 4500, if after filling it, I can continue adding characters and lines, but I never load all directly from the variable.

Re: there is some limitation on the length of the information in a control edit

Posted: Fri Mar 15, 2019 7:45 pm
by EduardoLuis
Hi Martingz:

Just put on EDITBOX definition: MAXLENGHT 0 (zero)
Regards
Eduardo

Re: there is some limitation on the length of the information in a control edit

Posted: Fri Mar 15, 2019 7:54 pm
by martingz
Eduardo i use MAXLENGHT 0 (zero) , as default
its very strange , i cant continue insert characters , but no load all memo info

saludos

Re: there is some limitation on the length of the information in a control edit

Posted: Fri Mar 15, 2019 9:52 pm
by EduardoLuis
Hola Martin:

Proba con -1.-
Recuerdo haber leido algo que sobre el tema había señalado Dr. Claudio Soto.-
Yo no tengo problemas al usar 0.-
De hecho, hice una rutina que carga textos de gran longitud (150000 caracteres).-
No tengo aqui un sample que creo que escribio el maestro Esgici, se llamaba memolst
Lo busco el fin de semana en casa, y lo subo.-
Abrazo
Eduardo

Re: there is some limitation on the length of the information in a control edit

Posted: Sat Mar 16, 2019 5:54 am
by andyglezl
Hola Martin

Yo lo utilizo así y me funciona...

Code: Select all

	*----------------------------------------------------------------------------------- EDITBOX INFO
	nColEDB := Form_1.Width / 2		;	nRenEDB := Form_1.height / 2
	@ nRenEDB , -18 EDITBOX EDB_01 WIDTH 560 HEIGHT nRenEDB - 25 VALUE "" FONT 'Consolas' SIZE 9 FONTCOLOR BEIGE BACKCOLOR { 000, 023, 052 } ;
				NOHSCROLL ;	//  NOVSCROLL
				MAXLENGTH 60000 NOTABSTOP TOOLTIP "Pizarrón" ON GOTFOCUS MuestBot( .T. ) ON LOSTFOCUS MuestBot( .F. ) 	// 
				*----------------------------------------------------------------------------------------------
				@ nRenEDB - 20 , 002 LABEL BTN_EDB1 OF Form_1 VALUE "Fecha"	 WIDTH 50 HEIGHT 15	FONT "Verdana" SIZE 7 ;
								 ACTION ( Form_1.EDB_01.Value := Form_1.EDB_01.Value + CRLF + FechTex( DATE(), 2 ) ) ;
								 TOOLTIP "Inserta Fecha y Hora"
EDB.png
EDB.png (97.7 KiB) Viewed 2725 times

Re: there is some limitation on the length of the information in a control edit

Posted: Tue Mar 19, 2019 2:24 pm
by martingz
Andy Eduardo misl disculpas por contestar tan tarde, me olvide el fin de semana de este problema para regresar con la mente mas rspejada, probare sus
consejos y veremos que pasa


saludos y mil gracias

Re: there is some limitation on the length of the information in a control edit

Posted: Tue Mar 19, 2019 2:58 pm
by martingz
Mil disculpas , el control edit esta bien, era problema del campo memo



Google Translation


A thousand apologies for the subject, it is not control problem, there was error in the memo field

Re: there is some limitation on the length of the information in a control edit

Posted: Wed Mar 03, 2021 5:21 pm
by serge_girard
Hello,

I encounter problems with MAXLENGTH 0 (it doesn't work!) .
My max length always stops at 8000 chars. I cannot force to unlimited !

How to change?

Serge

Re: there is some limitation on the length of the information in a control edit

Posted: Wed Mar 03, 2021 6:46 pm
by AUGE_OHR
hi,

i can load c:\harbour\ChangeLog.txt which is > 9 MB Size ...

---
https://docs.microsoft.com/en-us/window ... -limittext
Before EM_LIMITTEXT is called, the default limit for the amount of text a user can enter in an edit control is 32,767 characters.

For single-line edit controls, the text limit is either 0x7FFFFFFE bytes or the value of the wParam parameter, whichever is smaller.
For multiline edit controls, this value is either -1 byte or the value of the wParam parameter, whichever is smaller.

Re: there is some limitation on the length of the information in a control edit

Posted: Wed Mar 03, 2021 9:56 pm
by serge_girard
Can you paste a block of text >8000char into a textbox?
In my application it is truncated at exactly 8000 chars!

Please try Jimmy!

Serge