General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only