Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label
Message
From
04/05/2005 09:39:07
 
 
To
04/05/2005 05:57:18
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01010692
Message ID:
01010743
Views:
20
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
Previous
Reply
Map
View

Click here to load this message in the networking platform