>Hi!
>
>Don't use the Valid Event use LostFocus instead and then if you want to stay in that same control maybe your validation routine returns false then just setfocus back to the same control [This.SetFocus()]
>
>Sarosh
If I put two textboxes on a form. One with...
procedure lostfocus
if empty(this.value)
messagebox('Invalid')
this.setfocus()
endif
and the other with
procedure gotfocus
messagebox('Got me')
You will see that on tabbing out of box 1 you still get both messages and box 2 gets the focus anyway!
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement