How to Call Windows Help Search Macro in FoxPro 2.xLast reviewed: October 29, 1995Article ID: Q138782 |
The information in this article applies to:
SUMMARYThis article shows by example how to use program code to invoke Windows Help and open the Search Macro.
MORE INFORMATIONDevelopers who write a custom Windows Help file for their application may also want to include program code that invokes the Help session and goes immediately to the Search macro. This can be done with the following example: Create a program to contain the following code:
SET LIBRARY TO HOME()+"FOXTOOLS.FLL" && Locates Foxtools hhand=REGFN("WinHelp","LCIC","L") LPZFILENAME=HOME()+"FOXHELP.HLP"+CHR(0) WCOMMAND=258 DWDATA="SEARCH()"+CHR(0) MYCALL=MAINHWND() HELP =CALLFN(hhand,MYCALL,LPZFILENAME,WCOMMAND,DWDATA) RELEASE HHAND SET LIBRARY TO && Releases FoxtoolsNOTE: This code is intended for use with FoxPro Versions 2.x for Windows. While it will work under Visual FoxPro for Windows running under Windows 95, it can produce the following error with Visual FoxPro for Windows running under Windows 3.X:
Program Error: "Stack violation. Please check the parameters."For more information about code that will work with Visual FoxPro for Windows, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q138781 TITLE : How to Call a Windows Help Search Macro by Using Code |
Additional reference words: 2.50 2.50a 2.50b 2.60 2.60a FoxWin stack
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |