Help Method
This method of the VFP Automation server calls Help. Big surprise.
Usage |
oVFP.Help( [ cHelpFile ] [, nContextId | ,, cTopic ] ) |
Parameter |
Value |
Meaning |
cHelpFile |
Character |
The name (including path) of the help file to open. |
Omitted |
Open the current help file (as specified with SET HELP). |
|
nContextId |
Numeric |
Position Help on the topic with the specified HelpContextId. |
Omitted |
If cTopic is also omitted, position Help on the first topic. |
|
cTopic |
Character |
Position Help on the specified topic. If cTopic doesn't uniquely specify a single topic, show the Help index positioned on the closest match. |
Omitted |
If nContextId is also omitted, position Help on the first topic. |
In VFP 7, when you specify a help file other than the current one, the one you specify becomes the current help file. That is, VFP behaves as though you've SET HELP TO the specified file. We're pretty sure this is a bug, especially since older versions don't behave this way. |
In earlier versions, this method didn't know about HTML Help. If you invoke _VFP.Help from the VFP 6 Command Window, you get an error message. This problem was fixed in VFP 7. |
Example |
* Open VFP 5 Help from a later version _VFP.Help("\vfp5\foxhelp.hlp") * Position the currently open Help to the ASSERT command _VFP.Help(,,"assert") * Open VFP 5 Help to the topic with context id 536875079 _VFP.Help("\vfp5\foxhelp.hlp",536875079) |
See Also |