Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid vs. LostFocus
Message
 
À
09/04/2003 09:50:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00775350
Message ID:
00775485
Vues:
14
>I would like to add to what you have received in replies so far (which are all really great). There may be times (not a standard) when you will need to setfocus to a specific control based upon the value entered in the current control. While you cannot setfocus from the valid you can from the lostfocus.


Tracy;

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.

An exception like the above is a kluge to me. I think it is better to "obey the rules" and not worry about bandages. :)

Tom


>
>
>>I have seen some interesting code lately where instead of code in the valid method; the programmer is using lost focus.
>>
>>What are the advantages/disadvantages of such methodology? What is preferred? Why?
>>
>>Thanks
>>
>>Ric
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform