Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to SetFocus?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00301727
Message ID:
00301796
Views:
29
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform