Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to SetFocus?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00301727
Message ID:
00301796
Vues:
27
>Hello Evan,
>
>That is neat. I will try it now. I didn't know there was more to RETURN than meets the eye. That's better than SetFocus. Thanks.

Not necessarily. You can get into some bad coding adventures using things like:

RETURN 5

If you make changes, who knows what '5' will become?

If you need to use Setfocus to move somewhere, and want to keep things OOPish, use the Lostfocus, which handles Setfocus properly. RETURN in Valid is primarily just good for staying where you are.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform