>FWIW, you should also consider using the form.KeyPress() method and getting rid of the OKL entirely.
That's what I was going to say. If you use form.KeyPress (and form.KeyPreview=.T.) to intercept the F1, then you have THISFORM, etc., because you're in a method of the form.
OKL's are sort of "old school." (Not that I don't still use some "old school" stuff myself. But I don't use OKL's.)
Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing