Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why is LostFocus firing ?
Message
 
À
23/09/2004 11:24:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00945392
Message ID:
00945400
Vues:
19
>I have a dropdown list. It has code in its Valid event. If I subclass the Lostfocus event and put any code in it whatsoever, even something as simple as SET STEP ON, when I change value in the list, the Valid is skipped and Lostfocus fires?
>
>Any ideas what might be going on here?
>
>Thanks,

I just did a little test, and valid fires before lostfocus. In my own experience, VALID is, at the least, difficult to understand and seems to have a mind of its own.

FWIW: I use WHEN to constrain access to the higher tabstops, and lostfocus to validate the current control.

.txtTabOne.Lostfocus
*** check to make sure value is okay
*** if not okay, blank or empty .txtTabOne.Value and then .txtTabOne.Setfocus

.txtTabTwo.When
return !empty(.txtTabOne.Value)
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform