Hi,
try this:
("stHilfePfad"=path to the help-file
"Relations1.chm"= the actual chm-file,
siID=index for the relevant chapter of the file)
>>>
var
stHilfePfad String
endVar
stHilfePfad=getAliasPath("Work")+"\\Hilfe"
if siID>0 then
execute("hh.exe -mapid " + string(siID) + " " +
stHilfePfad+"\\Relations1.chm")
endIf
<<<
HTH
Egbert
schrieb im Newsbeitrag
> How do I do this?
>
> I have no problem calling a .HLP file using the following:
>
> method keyPhysical(var eventInfo KeyEvent)
> var
> theKey String
> endvar
> if eventInfo.isPreFilter() then
> ;// This code executes for each object on the form
> theKey = eventInfo.vChar() ; tell me what key was
> pressed
> if theKey = "VK_F2" then
> disableDefault
> helpShowIndex("R:\\Clients\\PDOXHLP.hlp")
> endif
> else
> ;// This code executes only for the form
> endIf
> endMethod
>
> However, the HTML based help (which uses a .CHM file) is so much
> better and does not work using the method above.
>
> I've searched this usenet and found only one instance of this topic
> but was unsuccessful in using the execute() command. Can someone help
> by detailing how I can accomplish this?
>
> Thank You!!
>
>> Stay informed about: Calling CHM Help File From a Form