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:
00393471
Views:
14
>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.

If this is the case, you should use KeyPress method, as Eric suggested. Something like:

if nKey=13 && Enter
nodefault
endif
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform