Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid, txtBox Loses Focus Before KeyPress Event
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00271789
Message ID:
00271878
Views:
18
Chuck,

First SET CONFIRM ON so the textbox won't lose focus until the enter or tab keys are pressed. Second, if you don't want the enter key to end up being pressed on teh next row of the grid you need to also issue a NODEFAULT as in;
IF nKeyCode = 13
   KEYBOARD '{DNARROW}'
   NODEFAULT
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform