>OurText.LostFocus()
>
>SELECT TheValidTable
>SEEK THIS.Value
>lcNextControl = "THISFORM."+ALLTRIM(TheValidTable.NextGuy)
>+".SetFocus()")
>&lcNextControl
>
>This code moves to the correct next control. The code in the LostFocus
>will fire ONLY IF the Valid was successful at letting focus move on.
Say, what if the user shift-tabs to the previous field? The
LostFocus() would fire. In FPD2.6 I've used ReadKey() and in most
of the valids called a PassKey() function to decide if user was
getting back to the previous field, and had
if passkey()
return .t.
endif
in the beginning of most of the valids. Now this should be implemented
in quite a different way here. Besides, I'm not sure if ReadKey() still
works, since this is not a Read anymore, so first I'd have to redefine
the PassKey() function. The question is: how do I know if user
backtabbed from a field?
The effect I achieved by this is that Valid does not fire if user
backtabbed, and I want to reproduce the behavior in VFP.