Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Jul 7, 2000



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Calling a Help System

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.
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date