To add to Dan's post, the VALID() fires just before the LOSTFOCUS(). So, if the VALID returns 0 or .F. the lostfocus() won't.
Also, you cannot call SetFocus() from with a Valid(), but you can from the lostfocus().
>What is the functional difference between the Validate and LostFocus Events in the Forms?
Précédent
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