>The "Set Help To" no longer clears my current help file. In my case I am running two executable programs.
>
>Prog1.exe calls Prog2.exe. Each has their own help file. Prog1 has a dbf style help and Prog2 has a windows style help.
>
>When Prog2 terminates and processing returns to Prog1, if the user selects F1 the help file for Prog2 displays.
>
>If I try to turn off the help for Prog2 and the user selects F1, they receive an error message of file not found.
>
>Prog2 may be called by other processes than Prog1.
>
>I tried to capture the current help file with lcOldHelp = set('help',1) at the start of Prog2 and then call Set Help To &lcOldHelp at the end of Prog2, but this errors with file not found.
>
>I would like to keep this contained in Prog2 and not have to call Set Help To in Prog1 everytime I return from a call to Prog2.
Set Help To, without parameters, returns the help to its default value, as found in config.fpw - and raises an error if it can't find the file. At least it did error out in 2.6, and I haven't left it without a proper help file since.
Two things to try:
- make a config.fpw file which will have a help=prog1help.dbf line in it and see if that works
- check the value of lcOldHelp after running prog2 (debugger or wait window) and check if there are any spaces in the filename. "Set Help To (lcOldHelp)" will fix it if that is the case.