Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing KeyPress value
Message
 
 
To
21/08/1997 21:26:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00046080
Message ID:
00046358
Views:
30
>>>Nodefault and stuffing the keyboard buffer works fine. Strange way to "eat
>>my sandwich" but it does the job. Looks like MS would have provided a way
>>to pass a different value back to the object directly from within the
>>keypress event. Many thanks for the help.
>>
>>Mike,
>>
>>If you must do it that way then here's an experiment to try, in the
>>Keypress;
>>
>> IF nKeyCode =
>> NODEFAULT
>> nKeyCode = ASC("")
>>ENDIF
>>
>what I usually do is
>DO CASE
> CASE nKeyCode=
> nNewkeyCode=new_value
> Textbox::KeyPress(nNewKeyCode,nShiftAltCtrl) && or any other
>control
> NODEFAULT
>.
>.
>ENDCASE


YYEEEEESSSS!!!!

Scope Resolution Operator huh, that one blew right by me. I bow my humble head to the VFP GOM (Geek of the month). What else would you expect from the UT'er nominated for coolest name? Code changed.

Many Thanks,
Mike
Michael McLain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform