Language ReferenceHelpContext Property

See Also                  Applies to


Description
Returns or sets a context ID for a topic in a Help file.

Syntax

object.HelpContext [= ContextID]

The HelpContext property syntax has these parts:

PartDescription
objectRequired. Always the Err object.
ContextIDOptional. A valid identifier for a Help topic within the Help file.

Remarks

If a Help file is specified in HelpFile, the HelpContext property is used to automatically display the Help topic it identifies. If both HelpFile and HelpContext are empty, the value of Number is checked, and, if it corresponds to a VBScript run-time error value, then the VBScript Help context ID for the error is used. If the Number value doesn't correspond to a VBScript error, the contents screen for the VBScript Help file is displayed.