Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label in forms
Message
 
To
24/09/1998 23:14:57
Sudhir Arora
Userease Software Pvt. Ltd.
New Delhi, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00140676
Message ID:
00140691
Views:
25
Sudhir,

The message means that commands like this and thisform can only be used from methods of objects and not from outside functions. Though, _screen.Activeform.PageFrame1.Page1.MyMethod() would work.

BTW, Rather than using OKL a better approach for trapping keys in forms is to use the KeyPress() event of the form and set the Form's KeyPreview property to .T.

>How can on key label command be used in forms ? When I write following commands in Load event of the form :
>on key label Ctrl+A thisform.pageframe1.page1.command1.click() ;
>an error message "Thisform can only be used within a method" appears.
Previous
Reply
Map
View

Click here to load this message in the networking platform