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:
00465965
Vues:
16
Yuri,
Look again. I think you missed something. The valid of field1 fires and the valid returns with a .t. to leave the field. If you don't return the .t. you don't ever get to the lostfocus. You don't loose focus.

After the vaild of field 1 fires and returns with a .t. the lostfocus of field1 fires. Then after the when of field29 fires VALID OF FIELD1 FIRES AGAIN!

Why, for any reason, should the valid of a field fire again after that field valid returned .t.? It should be done, finished. We should not see that valid again until we return to the field and then leave it a second time. On the first exit it should not go back around again. (The when and gotfocus of field 1 did not fire again.)

Also the setfocus from field1 lostfocus could set the focus to field 2 or 3 or 4 or 5 or 29 depending on what was put in field 1. So, "passing the valid" gets me to field 2. If I want to jump to field 29 but not set the enabled flag of all fields between 1 and 29 to false, I have to use a set focus. But, I don't want the valid of field 1 to fire, let me set focus to field 29 and then fire again. I may be doing something in the valid that I don't want done twice...

This seems very wrong to me.
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