Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ctrl+0 inserts .null.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156984
Message ID:
00156998
Vues:
39
Oops! I just remembered that KeyPress has another parameter. Something like nShiftAltCtrl. It tells you whether any of theys keys was combined with the key that was pressed. Try this in your KeyPress:
IF nKeyCode=48 AND nShiftAltCtrl=2
  NODEFAULT
ENDIF
You may already know this, but you can use the form's keypress as long as the form's KeyPreview property is .T.

>Yeah, I thought 48 was used for something else. I'll bet your users insisted on being able to enter 0s. Users are such a pain! :)
>
>>Josh,
>>
>>I tried nodefault for 48 in the keypress but that is also the code for 0. On key label ctrl+0 * worked great.
>>
>>Thanks!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform