#define HH_DISPLAY_TOPIC 0 #define HH_HELP_CONTEXT 15 Declare integer HtmlHelp in "HHCtrl.ocx" As HtmlHelpI; integer hwndCaller, string pszFile, ; integer uCommand, integer dwData Declare integer HtmlHelp in "HHCtrl.ocx" As HtmlHelpS; integer hwndCaller, string pszFile, ; integer uCommand, String dwData Declare integer GetDesktopWindow in win32api * display default topic HtmlHelpI(GetDesktopWindow(), "MyHelp.chm", HH_DISPLAY_TOPIC, 0) * display topic by file name HtmlHelpS(GetDesktopWindow(), "MyHelp.chm", HH_DISPLAY_TOPIC, "page2.htm") * display topic by context ID HtmlHelpI(GetDesktopWindow(), "MyHelp.chm", HH_HELP_CONTEXT, ContextID)KB article Q247241 contains a VFP sample for this function.