Help.ShowContext Method

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The Help.ShowContext topic allows you to display a help topic that is a part of the specified help file and has the specified ID, in the HTML Help viewer.

Declaration

Help.ShowContext(HelpFileName, HelpContext)

HelpFileName [in]    Required    String    
HelpContext [in]    Required    Integer    
Result None

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

HelpFileName

Specifies the name of the compiled help file (.chm) that contains the desired topic.

HelpContext

Specifies the topic’s ID. This is the same value that is defined for the topic in the [MAP] section of the help project (.hhp).

Result Value

None.

Remarks

The Help object along with all its methods can be used only in the source code of script extensions. This object does not exist in TestComplete scripts.

Example

The following code snippet demonstrated the Help.ShowContext method usage:

JScript

// script.js

Help.ShowContext("MyHelpFile.chm", 1000);

VBScript

' script.vb

Help.ShowContext "MyHelpFile.chm", 1000

See Also

ShowTopic Method
ShowURL Method

Highlight search results