Information générale
Catégorie:
Codage, syntaxe et commandes
Unfortuanately, if you use the browse command, you don't have a facility for trapping the keystrokes. On the other hand, if you use a grid control on a form, you can then take advantage of the keypress events.
The Grid control itself, does not have a KeyPress Event. However, Forms do have the KeyPress Event. So, if you set the KeyPreview Form Property to .T., you can use the form event.
Here is some code you can place in the KeyPress Event of the form...
LPARAMETERS nKeyCode, nShiftAltCtrl
If nKeyCode = 24 && down arrow
inkey(.5)
Endif
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement