Once I create a .chm help file with HTML Help Workshop, how do I call this help file from my .exe application?
There is a simple answer and a complex answer to this question.I’ll give the simple answer first. Use SET HELP TO to tell VFP to use your .chm file whenever HELP is called or F1 is pressed:
SET HELP TO MyHelp.chm
Now here’s the complex answer. Every VFP object that can have a visual representation has a property called a HelpContextId. If you have created topics with context ids in your .chm file, then you can set the HelpContextId of controls in your application to ids in the .chm file. Then when you press F1 while the control is active, you will be brought right to the specific context id in the help file.