>Not sure if I'm not getting yours, or your not getting mine, but what I'm doing is using On Key Label F1 to call a second form and pass parameters to it. The parameters passed are stuff like This.Name, This.Parent, etc. Everything works fine if I define variables in the GotFocus of the object's class, but I'm trying to avold the maintenance that's involved with the coding (including using the HelpContextID). I want to simply say something like, "On Key Label F1 Do HelpForm with This.Name, This.Parent" and have it use whatever those values were for the object that was current when I pressed F1. Are you saying that I CAN do this if I pass object references instead of the variables?
>
I think it was me not getting yours :)
THIS won't work with OKL, however if you change your strategy a bit, you can get it to work... try using the KeyPress event.
Something like:
object.KeyPress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nKeyCode = 28
NODEFAULT
DO HelpForm WITH THIS.Name, THIS.PARENT...
ENDIF
You might want to just pass THIS to the HelpForm - it saves a bit of rework if you later decide to change which properties of THIS you look at.
Brien R. Givens
Brampwood Systems