Renoir,
One of the parameters needs to be an object reference.
ie, if the parameter is form.CurrentObject
object.GotFocus
form.CurrentObject = THIS
Help call something like:
THISFORM.Help.ShowHelp(THISFORM.CurrentObject)
I hope that answers your question. There is a HelpContextID parameter for each object that might make your life easier.
>I'm using a help system that passes parameters in order to determine what help should be displayed for a particular object. I'm setting the parameter values in the GotFocus of the classes. I thought that it would be cleaner if I could just define the parameters when the OKL is called, but I get an error that "this" can only be used within a method, etc. Is there a way to pass values of the object that is current using the OKL? Thanks!
>
>Regards, Renoir
Brien R. Givens
Brampwood Systems