In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TMemo (OnChange Method)

Xailer English public forum
mario.paiva
Mensajes: 7
Registrado: Lun Jun 11, 2007 5:13 pm

TMemo (OnChange Method)

Mensaje por mario.paiva »

Hi all
It seems to be a little problem in the OnChange event in the Tmemo control:
If the TMemo receives data from a database on the Form Show, The OnChange
event just works in the second time when altered.
Works perfect if the Tmemo receives a Null value from the database.
The TEdit control does not have this problem and works as expected with or
without data on in it.
Please see the attached zip project for a better understanding this issue.
Obs: In this example you have to modify the cConnect property on the
oNtxDataSource1 component to match the path in your computer.
Thanks in advance and best regards,
Mário Paiva
--

Attached files Debug_X.zip (8.5 KB)Â
Responder