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

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

martingz
Posts: 394
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

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

Post 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.
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

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

Post by EduardoLuis »

Hi Martingz:

Just put on EDITBOX definition: MAXLENGHT 0 (zero)
Regards
Eduardo
martingz
Posts: 394
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

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

Post 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
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

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

Post 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
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

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

Post 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 2730 times
Andrés González López
Desde Guadalajara, Jalisco. México.
martingz
Posts: 394
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

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

Post 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
martingz
Posts: 394
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

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

Post 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
User avatar
serge_girard
Posts: 3163
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

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

Post 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
There's nothing you can do that can't be done...
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

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

Post 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.
have fun
Jimmy
User avatar
serge_girard
Posts: 3163
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

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

Post 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
There's nothing you can do that can't be done...
Post Reply