How to Open a Help File

Previous Next

The simplest way of activating help is to define a menu option that open the help file in its appropriate environment.

To open a help file:

Use the Windows Designer to add a menu option to the Help menu that performs the following action:

HelpRunWinhelp(<help_filename>)

NOTE: The help file identified by <help_filename> can be either a WinHelp file (.HLP extension) or a Compiled HTML Help file (.CHM file extension).

By default, the file is searched for in the working directory. If required, specify the path to your help file as well. For example:

HelpRunWinhelp('%SystemDir%\help\yourhelp.chm')

NOTE: References to SystemDir are internally mapped to the version key.