>>>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...
of course it is possible (almost everything is (s))
u still have to put the nodefault though
it is better though (IMHO) to do something general e.g. create
a textbox subclass with a logical property determining the state
it is better OOP
Arnon
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only