Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KeyPress Event Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00038260
Message ID:
00039121
Vues:
51
>>> That is a solution, but through various test a bad solution. As the
>>whole
>>> value gets UPPER cased every time the
>>> user presses a key. It is very distracting to the user. Why is there
>>not
>>> a function or fomat control that will cause
>>> upper case for each key stroke?
>>>
>>> Thanks for the input, but I still have to find someone who knows the
>>answer
>>> to this, maybe it is
>>> a Keypress Event answer or maybe it is something else.
>>>
>
>In FoxPro 2.X you were/are able to tell foxpro to format this field, the format could be upper case.
>In VFP 5.0a in an edit box you cant enter a ! for a format, which was the command to tell foxpro
>to go to upper case.
>
>That is the first part.
>The second is there anyone who has perfected a KeyPress Event, that is to say, when a user presses a key
>and it comes out of the keyboard buffer, I would like to be able to perform an action on the key stroke and even
>stop certain keys from being passed. You can do this in visual basic, but VFP has a little problem with it (you
>have to do it yourself)

You can customize KeyPress yourself as in:


IF inlist(nKeyCode,1,6,5,7,24,4,19,13,127,9) or ;
inlist(chr(nKeyCode),'A','S','K','W','C','D') && input valid
ELSE
NODEFAULT && invalid, maybe message, etc., or do nothing at all
ENDIF
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform