Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with setfocus used in keypress event
Message
From
26/04/1997 12:51:27
John Thomason
King Richard Veterinary Centre
Leicester, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Problem with setfocus used in keypress event
Miscellaneous
Thread ID:
00029785
Message ID:
00029785
Views:
58
If I use the keypress event to run code on nKeyCode = 13 the keystroke is performed in the next field entered. If the next object in the tab order is a command button, the click event is triggered. If I want to move the focus to a text box which is not next in the tab order using setfocus, on arriving in the desired field I get an unwanted "return" moving me into the next object in the tab order. I would be grateful for any help.
Next
Reply
Map
View

Click here to load this message in the networking platform