Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement