Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checkbox - don't want ENTER to change value
Message
 
To
22/12/1999 09:11:09
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00307053
Message ID:
00307341
Views:
16
>>
>>IF LASTKEY() = 13 && Enter
>>   This.Value = NOT This.Value
>>ENDIF
>>
>I would caution you that LASTKEY() doesn't necessarily give you the key last pressed in this control. If you press Enter to move to the checkbox, then click the checkbox, LASTKEY() is still Enter.

Charlie,

Good Point move the code to teh checkbox KeyPress event and change it to;
IF nKeyCode = 13
   NODEFAULT
   KEYBOARD "{TAB}"
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform