HtmlHelp
- Last UpdatedFeb 02, 2024
- 1 minute read
Invokes the Microsoft HTML Help application (hh.exe) to display a specific topic from an HTML help file (.chm).
Syntax
HtmlHelp(sHelpFile, nCommand, sData)
sHelpFile:
The help file to display. For example, "C:\Program Files (x86)\AVEVA Plant SCADA\Bin\ProcessAnalyst.chm".
This argument supports path substitutions. For example, "[BIN]:ProcessAnalyst.chm".
nCommand:
The type of help:
0 - Display a topic identified by an internal file name in the sData field. This is the name of the file within the .chm file. For example: "1126187.htm".
1 - Display a topic identified by the Mapped Topic ID in the sData field. For example: "1000".
2 - Terminate the help application.
3 - Display the index.
sData:
Optional data, depending on the value of nCommand.
Return Value
0 (zero) if successful, otherwise an error is returned.