Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want to stay on a field?
Message
From
19/09/1997 22:18:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00049609
Message ID:
00050849
Views:
49
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform