Article ID: 138781
Article Last Modified on 8/12/1999
SET LIBRARY TO HOME()+"FOXTOOLS.FLL" && Locates Foxtools
hhand=REGFN("WinHelp","ICIC","I")
LPZFILENAME=alltrim(HOME())+"FOXHELP.HLP"
WCOMMAND=258
DWDATA="SEARCH()"
declare Integer FindWindow in Win32Api String,String
hwnd=FindWindow("","")
HELP
=CALLFN(hhand,hwnd,LPZFILENAME,WCOMMAND,DWDATA)
RELEASE HHAND
SET LIBRARY TO && Releases Foxtools
The following code shows how to call Visual FoxPro Help using Declare:
LPZFILENAME=HOME()+"FOXHELP.HLP"+CHR(0) HELP help_command=258 Declare Integer WinHelp in Win32Api Integer, String, Integer, String =WinHelp(0,LPZFILENAME,help_command,"SEARCH()")The following code shows how to call a specific Help topic within Visual FoxPro Help:
LPZFILENAME=HOME()+"FOXHELP.HLP"+CHR(0) HELP help_partialkey=261 Declare Integer WinHelp in Win32Api Integer, String, Integer, String =WinHelp(0,LPZFILENAME,help_partialkey,"form properties")This example specifically calls the "Form Properties" Help topic. Experimentation with this will demonstrate various degrees of functionality. For example, altering the last line of code such that "form properties" is replaced with "form" will bring up the Search macro with the search index moved to "form."
Additional query words: VFoxWin
Keywords: kbcode KB138781