Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trap a string of numbers with Keypress Event
Message
De
18/01/1999 21:28:49
 
 
À
18/01/1999 17:16:35
Jaime Vila
Miami Children's Hosp. - Radiology
Miami, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00177377
Message ID:
00177440
Vues:
26
>Can it be done ? rather than one key. I haven't found much discussion about Keypress event in documentation.
>
>I'm using a form where the object with focus is a grid. Want to be sure page-up & down are OK. . . . . Need to . . catch a string of numbers, look them up, and update some tables if found. Some Keypress samples would really help.
>
>TIA

Keypress fires once every time a key is pressed, and the nKeyCode parameter only gives information about the key that was pressed. To catch a 'string' of numbers, ou would need a custom form property that stored previously pressed keys. You could then build the string by appending the value of the latest keypress onto the end of the form property. This is a pretty awkward solution though- perhaps a little more informaiton about what oyu are trying to do...
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform