# CdlHelpConstants enumeration
{: .no_toc }

Commands for the WinHelp viewer, which [**ShowHelp**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#showhelp) starts.

The enumeration is declared inside the [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class. Its members are used without a qualifier, or with the name of the enumeration. The values are those of the Windows `HELP_` constants of the `WinHelp` function, and the class passes the value of [**HelpCommand**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcommand) to that function unchanged.

The command decides which property supplies the extra data that `WinHelp` needs. The commands that need a topic number read [**HelpContext**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcontext), those that need a keyword or a macro read [**HelpKey**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpkey), and the others use no extra data. [**HelpFile**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpfile) names the help file for every command. The **HelpCommand** property accepts these members and 0, for which **ShowHelp** does nothing.

Two pairs of members have the same value, so the two names of a pair are interchangeable: the **Index** names are the older ones: **CdlHelpIndex** and **CdlHelpContents**, and **CdlHelpSetIndex** and **CdlHelpSetContents**.

| Member | Value | Description |
|:-------|:------|:------------|
| **CdlHelpContext**{: #CdlHelpContext } | `&H1` | Shows the topic with the number in [**HelpContext**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcontext). |
| **CdlHelpQuit**{: #CdlHelpQuit } | `&H2` | Closes the help file. |
| **CdlHelpIndex**{: #CdlHelpIndex } | `&H3` | Shows the contents topic of the help file. Has the same value as **CdlHelpContents**, of which it is the older name. |
| **CdlHelpContents**{: #CdlHelpContents } | `&H3` | Shows the contents topic of the help file. Has the same value as **CdlHelpIndex**. |
| **CdlHelpHelpOnHelp**{: #CdlHelpHelpOnHelp } | `&H4` | Shows the help on how to use the help viewer. |
| **CdlHelpSetIndex**{: #CdlHelpSetIndex } | `&H5` | Makes the topic with the number in [**HelpContext**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcontext) the contents topic of the help file. Has the same value as **CdlHelpSetContents**, of which it is the older name. |
| **CdlHelpSetContents**{: #CdlHelpSetContents } | `&H5` | Makes the topic with the number in [**HelpContext**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcontext) the contents topic of the help file. Has the same value as **CdlHelpSetIndex**. |
| **CdlHelpContextPopup**{: #CdlHelpContextPopup } | `&H8` | Shows the topic with the number in [**HelpContext**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcontext) in a pop-up window. |
| **CdlHelpForceFile**{: #CdlHelpForceFile } | `&H9` | Makes sure that the viewer shows the help file named in [**HelpFile**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpfile). |
| **CdlHelpKey**{: #CdlHelpKey } | `&H101` | Shows the topic for the keyword in [**HelpKey**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpkey). |
| **CdlHelpCommandHelp**{: #CdlHelpCommandHelp } | `&H102` | Runs the help macro in [**HelpKey**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpkey). |
| **CdlHelpPartialKey**{: #CdlHelpPartialKey } | `&H105` | Shows the topic for the keyword in [**HelpKey**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpkey), or a list of the topics that match it when there are several. |

## Used by

- [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class: [**HelpCommand**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#helpcommand)

## See Also

- [Enumerations](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/Enumerations/index.md) -- all the enumerations of the package
- [CommonDialog](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class
