Página 1 de 1

Problem with OnExit

Publicado: Sab Ene 22, 2005 12:02 am
por Christian Lauer
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

Problem with OnExit

Publicado: Sab Ene 22, 2005 12:08 pm
por jfgimenez
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)Â