Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OKL Passing Parameters
Message
From
25/06/2001 14:31:23
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00523099
Message ID:
00523131
Views:
12
>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,

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?

Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform