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

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
martingz
Posts: 259
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico
Has thanked: 12 times
Been thanked: 10 times

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

Post by martingz » Thu Mar 14, 2019 5:21 pm

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: 625
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 42 times

Post by EduardoLuis » Fri Mar 15, 2019 7:45 pm

Hi Martingz:

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

martingz
Posts: 259
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico
Has thanked: 12 times
Been thanked: 10 times

Post by martingz » Fri Mar 15, 2019 7:54 pm

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: 625
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina
Has thanked: 1 time
Been thanked: 42 times

Post by EduardoLuis » Fri Mar 15, 2019 9:52 pm

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: 1101
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Has thanked: 28 times
Been thanked: 64 times
Contact:

Post by andyglezl » Sat Mar 16, 2019 5:54 am

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 159 times
Andrés González López
Desde Guadalajara, Jalisco. México.

martingz
Posts: 259
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico
Has thanked: 12 times
Been thanked: 10 times

Post by martingz » Tue Mar 19, 2019 2:24 pm

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: 259
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico
Has thanked: 12 times
Been thanked: 10 times

Post by martingz » Tue Mar 19, 2019 2:58 pm

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

Post Reply