Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How did I exit?
Message
 
 
To
28/11/2007 12:53:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01271800
Message ID:
01271807
Views:
18
>I have a Textbox control. When I exit that control I compare the original value with the current value. If they are the same, then I don't do anything. I now want to run the validation/lost focus code if they exit by pressing the ENTER key. If the user TABs out or mouse-clicks out, I want to follow the original logic.
>
>How can I capture the keystroke/mouse action the caused the exit from the control?

Try
IF LASTKEY() = 13 AND NOT MDOWN()
...
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform