Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enter in a text box
Message
 
To
17/07/2000 15:24:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00393414
Message ID:
00393484
Views:
28
>OK,
>
>I got the cursor to stay in the textbox by returning 0. One problem though, if I hit the cancel button on my form I don't want it to do the function inside the valid event of that textbox which it does everytime I want to leave that text box. I only want the code to happen when I hit enter on the keyboard. Valid might not be the correct function. How could I get around that?
>
>Thanks for your help everyone.

One nice thing about being a corporate developer is that you can, sometimes, set standards. In my case, the standard that I've set is simply if the value is empty, bypass the validation. There might be other conditions (key presses) that you might want to build in as well. For example, if the user presses shift + tab. In the case of that, I'd simply check LASTKEY() in the valid.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform