Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid And LostFocus - Help
Message
De
26/04/2011 18:59:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01508436
Message ID:
01508450
Vues:
58
>On a textbox, I have some code in the valid event. Does the valid event not fire if the user clicks into another control? It always fires when I tab out or fill the control to the max number of characters, but it doesn't seem to fire if I click to another control on the form.
>
>Is there an event linkage between Lostfocus and Valid, like they one fires then the other or are they really two totally separate events?

According to the help, and confirmed in HackFox 3, for a text box the valid event always fires before a control loses the focus. Lostfocus fires when the control loses the focus.

Maybe your Valid code is returning .T. unexpectedly. Have you traced in the debugger?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform