Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid vs. LostFocus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00775350
Message ID:
00775648
Vues:
10
>I may be incorrect (I have not tried this for about 5 years) but I think you can set focus from a Valid by setting Return -1, etc. If I recall, we did that on one project. I think I have also seen it done with a framework I use.

Thomas,

Yes this "feature" of the valid event is a hold over from the days when there was no Lostfocus event. I would pose the question, which of these is easier to debug two years later;
* Valid
...
RETURN ( ThisForm.Target.TabIndex - This.TabIndex )
OR
* Lostfocus
Thisform.txtState.Setfocus()
NODEFAULT
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform