CONTENTS Option

Syntax

CONTENTS=context-string

The CONTENTS option identifies the context string of the highest-level or “home” topic (usually a Table of Contents or index within the Help file). Windows Help displays the Contents whenever a user chooses Contents from the Help menu, clicks the Contents button, or presses F1 in the application without a specific context.

Parameter

context-string

Specifies the context string of a topic in the Help file. The string can be any combination of characters, except spaces, and must also be specified in a context string footnote (#) in some topic in the Help file.

Comments

If the [OPTIONS] section does not include a CONTENTS option, the compiler assumes that the first topic it encounters in the first listed topic file in the [FILES] section of the Help project file is the contents topic.

Example

The following example sets the topic containing the “main_contents” context string as the Contents topic for this Help file:

CONTENTS=main_contents

See Also

[FILES] Section, [OPTIONS] Section