To control the Help window, specify the Help keyword instead of the integer window_id argument. For example, the following statement displays topic 23 from a custom help file:
Set Window Help File "custom.chm" ID 23
The File help_file clause sets which help file is active. This action automatically displays the Help window (unless you also include the Hide keyword). Specifying File Default resets MapInfo Pro to use the standard MapInfo Pro Help, but does not display the help file. MapInfo Pro has only one help file setting, which applies to all MapBasic applications that are running. If one application sets the current help file, other applications may be affected.
The Off clause turns off MapInfo Pro's help, so that pressing F1 on a MapInfo Pro dialog has no effect. Use the Off clause if you are integrating MapInfo Pro functionality into another application (for example, a Visual Basic program), if you want to prevent the user from seeing MapInfo Pro help. (MapInfo Pro help contains references to MapInfo Pro's menu names, which may not be available in your Visual Basic program.)
The Permanent clause sets MapInfo Pro to always use the help file specified by help_file, even when the user presses F1 on an MapInfo Pro dialog box. The Permanent setting lasts for the remainder of the MapInfo Pro session, or until you specify a Set Window Help File... statement.
To control which help topic appears in the Help window, include the ID clause (to display a specific topic).
MapBasic does not include a help compiler. For more information on working with online help, see the MapBasic User Guide.