Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid vs. LostFocus
Message
De
09/04/2003 10:50:26
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00775350
Message ID:
00775489
Vues:
13
The problem with that, Thomas, is that you have to basically hard code the tab order of the controls to know where the focus will go when you do that. To me it's tantamount to using workarea numbers instead of aliases. It works, but...

Alan

>>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