Hola a todos,
I used the OnExit event to validate an input variable. As long as there
is no code within the method to handle the event, you can change to
another control. As soon as there is code within the method you can't
leave the edit field anymore:
METHOD editPasswordExit( oSender, oNextCtl ) CLASS formLogin
MsgAlert("Passwort prí¼fen")
// Validate password
RETURN Nil
This will lock the cursor in the edit field editPassword.
Any ideas? Thanks!
Christian
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.
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.
Problem with OnExit
-
- Mensajes: 30
- Registrado: Lun Jul 18, 2005 12:29 am
Problem with OnExit
Christian,
> I used the OnExit event to validate an input variable. As long as there
> is no code within the method to handle the event, you can change to
> another control. As soon as there is code within the method you can't
> leave the edit field anymore:
>
> METHOD editPasswordExit( oSender, oNextCtl ) CLASS formLogin
> MsgAlert("Passwort prüfen")
> // Validate password
> RETURN Nil
>
> This will lock the cursor in the edit field editPassword.
This happens because you are showing another window (MsgAlert) from this
event. There was a bug that causes the focus to return to the same control
after closing the new window.
It's fixed in the new beta 9, that we'll publish next monday (if not
before). I've attached the WhatsNew.htm
--
Regards,
Jose F. Gimenez
Attached files WhatsNew9.htm (4.8 KB)Â
> I used the OnExit event to validate an input variable. As long as there
> is no code within the method to handle the event, you can change to
> another control. As soon as there is code within the method you can't
> leave the edit field anymore:
>
> METHOD editPasswordExit( oSender, oNextCtl ) CLASS formLogin
> MsgAlert("Passwort prüfen")
> // Validate password
> RETURN Nil
>
> This will lock the cursor in the edit field editPassword.
This happens because you are showing another window (MsgAlert) from this
event. There was a bug that causes the focus to return to the same control
after closing the new window.
It's fixed in the new beta 9, that we'll publish next monday (if not
before). I've attached the WhatsNew.htm
--
Regards,
Jose F. Gimenez
Attached files WhatsNew9.htm (4.8 KB)Â