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.

Masked Edit

Xailer professional forum in English
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

Masked Edit

Mensaje por Nick Hilder »

Hi Gents
I have a bunch of TEdit's on a form and 1 TMaskEdit
In the OnExit event I have call a methed with like this
METHOD IsModified( oSender, oNextCtl )
If oSender:lModify == .T.
::oSave:lEnabled := .T.
Endif
RETURN Nil
The problem I want to report is that LModify is not being set to true when I
change the contents on the TMaskEdit control
My mask is this (from the xfm)
WITH OBJECT ::oTimerInterval := TMaskEdit():New( ::oGatewayGroupBox )
:SetBounds( 116, 24, 46, 20 )
:cMessage := "Enter a value between 1 and 99 seconds"
:nMaxLength := 2
:cPicture := "99"
:Value := " "
:OnExit := "IsModified"
:Create()
END
Responder