Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set Help To Alternative
Message
From
11/10/2001 20:01:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/10/2001 18:51:05
Robin Alvarez
Information Network Systems, Inc.
San Diego, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00566712
Message ID:
00567335
Views:
15
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform