Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus() from within a LostFocus event acting strangel
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00465934
Message ID:
00466024
Vues:
12
Nope. There is no nodefault.

The field1.lostfocus is sort of

DO CASE
CASE blabal
this.parent.field2.setfocus()
CASE soso
this.parent.field4.setfocus()
yada yada
Otherwise
this.parent.field29.setfocus()
EndCase

RETURN .T.

The setfocus does its thing and the when of the selected field fires
and then the field1.valid goes off again. (Which has some nasty side
effects as the valid decides if the input is valid and if so does some
things that do not bear repeating.

I made up a test form with only three fields and code in the various events to track things, thinking something in my program had messed up things. It works the same in a one screen three field program. Any hints? SHOULD there be a
NODEFAULT?

Thanks for any input. I am going nuts!
Weldon Adair
Adair Software Corporation
(561) 445-8091
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform