>>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.