Page 1 of 1

Duda con control EDITBOX

Posted: Wed Oct 17, 2018 3:46 pm
by alfaqui
Buenos Días Señores del Foro Por favor necesito hacer la siguiente consulta

Se Requiere:
Actualizar el mismo control EDITBOX varias veces cada vez agregando un texto nuevo sin que se borre lo que había antes en el control.

Yo Utilice la siguiente instrucción primero y lo hace bien:

MODIFY CONTROL cMtch OF Win_1e VALUE "Elemento MADERA" + chr(13) + chr(10)
.
.
.

mas adelante utilizo:
local cTex := alltrim( Win_1e.cMtch.Value )
MODIFY CONTROL cMtch OF Win_1e VALUE cTex + chr(13) + chr(10) + " " + chr(13) + chr(10) + "LENGUA : Columna Vertebral" + chr(13) + chr(10)

Re: Duda con control EDITBOX

Posted: Wed Oct 17, 2018 4:00 pm
by serge_girard
In my opinion there is no need to MODIFY CONTROL..

Just do:

Code: Select all

Win_1e.cMtch.Value :=  Win_1e.cMtch.Value + 'new values' 
/* so old value := old_value + new_value  
Serge

Re: Duda con control EDITBOX

Posted: Thu Oct 18, 2018 1:31 pm
by alfaqui
Gracias serge_girard funciona como ud dice.

Thanks serge_girard it works as you say.