Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing KeyPress value
Message
 
À
21/08/1997 21:26:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00046080
Message ID:
00046358
Vues:
32
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform