Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NEED HELP: VALID event is not fired using mouse
Message
De
13/06/2001 11:51:07
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00518878
Message ID:
00518930
Vues:
13
>Yes, David is right. I'd suggest you put your code on the lostfocus event.

Esteban,

I think the Valid event is okay for your code, since you are validating user input. In other languages you'd use the LostFocus(), but FoxPro gives us a Valid event that makes it easy to prevent the user from exiting the field. You just want to be sure if the problem is that the event isn't firing or that the code isn't running.

BTW, If the default "Invalid Input" message is not enough, you can display your own message and RETURN 0 instead of RETURN .F. RETURN 0 will return the cursor to the control without displaying the Invalid Input message.
David.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform