Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
VFP keyPress event and Grids
In one of the cells in a grid i have made I want to add a special key.. that would cause a particular thing to happen.
sort of like a hot key, but different.
The key stroke sequence is CTRL+P
Now reading the documentation, the nShiftAltCtrl=2 and the nKeyCode=16 for the above combination.
I then added the following code to the KeyPress Event
IF nShiftAltCtrl=2 and nKeyCode=16
nodefault
this.value=''
thisform.GetNewPArt()
ENDIF
now, if I run it in the debugger everything happens as it should.. (i.e. I step through it.)
but, Without the debugger... I can hit CTRL+P till I'm blue in the face and nothing happens...
Any ideas,
TIA
Mike
Suivant
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