JumpContext (or JC)

Executes a jump to a specific context within a Help file. The context is identified by an entry in the [MAP] section of the Help project file.

Syntax

JumpContext("filename", context-number)

JC("filename", context-number)

Parameter Description

filename Name of the destination Help file for the jump. The filename must be enclosed in quotation marks.
context-number Context number of the topic in the destination Help file. The context number must be defined in the [MAP] section of the destination Help file’s project file.

Example

The following macro jumps to the topic mapped to the “801” context ID number in the PIFEDIT.HLP file:

JumpContext("pifedit.hlp", 801)

Comments

Use regular context jumps (double underlining, context string in hidden text) for jumps within the Help file rather than the JumpContext macro.

If Windows Help cannot find the specified Help file, it displays an error message and does not perform the jump.

If the context number does not exist or cannot be found in the [MAP] section, Windows Help jumps to the Contents topic or the first topic in the Help file and displays an error message. (For more information about context numbers, see “[MAP] Section” in Chapter 16, “The Help Project File.”)

See Also

JumpId, PopUpContext