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:
00140807
Views:
26
>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.

on key labels is not the preferred method - but i have a single form (toplevelform) with a pageframe, and a large conversion from 2.6. on key labels are in my app. have found several conversion situations where a proc can get the job done but a method can not. maybe i never get the method syntax right, but i finally get it to work in a proc. on key with something to execute is one of them. replace your "on Key" with a do proc1 (not method, but a proc). make two new procs. proc1 has "on key label do proc2". proc2 has the "click()" command. of course you will have to change the thisform to the object reference.

brenda
Previous
Reply
Map
View

Click here to load this message in the networking platform