Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard command not working?
Message
 
To
16/10/1996 14:47:20
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00010223
Message ID:
00010340
Views:
39
>>Has anyone successfully used the command:
>>
>>keyboard upper(chr(nkeycode)) &&nkeycode init to 0
>>
>>in VFP/Win 95 for textbox input? I used this back in FPW 2.6, without trouble, as I recall. I've tried putting it various places but to no avail, lower case input still shows up lower. I'm using table buffering. What am I doing wrong?
>>
>
>in the keypress event
>
>param tnKeyCode,tnALTSHIFTCTRL
>local lnUpperKeCode
>lnUpperKeycode=asc(upper(chr(tnKeyCode))
>textbox::keypress(lnKeyCode,tnALTSHIFTCTRL)
>nodefault
>
>or something similar

Thanks, I've got it working at the textbox level now. I was trying to get it to work at the form level, which makes more sense with many textboxes on many forms, but haven't had much luck there. You have to set Keypreview .T. at the form level, but then all letters show up double (mM, BB, etc.).
It may be possible to do this, but I'll leave this for another day...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform