devxlogo

Calling a Help System

Calling a Help System

Question:
Once I create a .chm help file with HTML Help Workshop, how do I call this help file from my .exe application?

Answer:
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.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist