| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
|
| 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!! |
|
#2
|
| 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 news:d7ec5ce5-9ec9-425c-9613-d4f7f35b86a7-at-m45g2000hsb.googlegroups.com... > 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!! > |
![]() |
| Thread Tools | |
| Display Modes | |