Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Valid vs. LostFocus
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00775350
Message ID:
00775648
Views:
11
>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.

Thomas,

Yes this "feature" of the valid event is a hold over from the days when there was no Lostfocus event. I would pose the question, which of these is easier to debug two years later;
* Valid
...
RETURN ( ThisForm.Target.TabIndex - This.TabIndex )
OR
* Lostfocus
Thisform.txtState.Setfocus()
NODEFAULT
Previous
Reply
Map
View

Click here to load this message in the networking platform