Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label
Message
De
04/05/2005 09:39:07
 
 
À
04/05/2005 05:57:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01010692
Message ID:
01010743
Vues:
22
I want the command ON KEY LABEL must work only on that form where I wrote it.

The problem with OKL's is that they interrupt any code that may be running at the point in time that they are triggered. This is a ( as you have discovered ) a global solution to a local problem. A much better way to handle this would be to use code like this in the KeyPress() method of the form in which you require this functionality (make sure you set the form's KeyPreview property to .T. ):
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = -7 && F8
  DO FORM OTPTPOS.SCX
  NODEFAULT
ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform