Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stopping Lostfocus
Message
De
14/01/2005 17:37:21
 
 
À
14/01/2005 15:57:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00977001
Message ID:
00977388
Vues:
29
>>>The best, and correct, approach is to use VALID for validation, thus the name. RETURN=.F. measn failed validation.
>>
>>Theoretically, yes. But since VFP3 we have to live with this limitation that SetFocus() can't be called if there's a .valid anywhere upstairs the call stack. This means that any new form called during validation must have absolutely no .Setfocus() anywhere, because there's a pending .valid (or .RangeLow(), .RangeHigh() and a couple of others). If this limitation didn't scope out to called forms, we could live with that... but it did, so for ten years now we live with that.
>>
>>Now someone should correct me - I think I have read somewhere that this limitation is removed in VFP9... if that is true, we may rethink a few things.
>
>Yes, it's been really annoying that the valid restriction on setfocus persists to other forms. So I too would be real keen to hear if VFP has "fixed" this.

On VFP9 you can return a objRef on the Valid event.
You have 3 cases:
RETURN NULL          && form    stop
RETURN m.this        && control stop
RETURN anotherObject && like a tab move into anotherObject 
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform