Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP keyPress event and Grids
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
VFP keyPress event and Grids
Divers
Thread ID:
00186518
Message ID:
00186518
Vues:
189
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
Fil
Voir

Click here to load this message in the networking platform