>I use On Key F1 to call a help form. While the user is on the help form I would like to have F1 then run code in a method. I'm getting an error that I must use ThisForm only in a method. I understand that I'm trapping the F1 key at the sytem level and it doesn't understand that there is a form active, but how can I work around this? I can easily put a button on the help form that runs the code I need, but it would be cleaner if the user could just use the F1 key for this secondary help. Thanks!
>
>Regards, Renoir
In OKL you should use _screen.activeform construction. But it would be much better to use KeyPress event of the form.
If it's not broken, fix it until it is.
My Blog