Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error using ON KEY LABEL in a From
Message
 
 
To
14/03/2008 11:12:36
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01301881
Message ID:
01302136
Views:
11
>>>>I have this in MyForm.LOAD, but it gives an error regarding that it cannot be used outside a form.
>>>>
>>>>
>>>>ON KEY LABEL ESC THISFORM.CloseFormESC()
>>>>
>>>
>>>Borislav's solution is the better one.
>>
>>Yes, it's better.
>
>Why?

ON KEY LABEL is kind of a global command. If you need a particular functionality for the form, it is much better to code its KeyPress event instead.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform