We are running a commercial VFP 9 application that respects the setting
of HELP=ON/OFF it finds in our configuration file. We set

foxprowcfg=<file_name>

at login time, primarily for the benefit of users of our custom VFP 6
applications. Because the commercial app uses a different version of
VFP than our custom apps, we were wondering if the naming convention for
a VFP configuration file exists to allow us to specify _two_
environmental variables and set things differently for each. E.g., back
in the day, we would use foxprocfg and foxprowcfg to differentiate
between the DOS and Windows versions.

Our two VFP versions are, as mentioned above 6 and 9.

Thanks in advance.

-S-

Re: FOXPROCFG environmental variable by Dan

Dan
Fri Jan 05 15:02:42 CST 2007

The best way to handle config files is with the -C commandline switch, IMO,
if you're going to have them external. We burn them into our exes so each
exe ALWAYS has its own config file.

VFP9 introduced a new config file keyword: ALLOWEXTERNAL. That may be of use
to you. You can have core settings in a config file burned into an EXE and
location-specific settings in a localized config file. I haven't played with
this particular feature, and I've no idea how it will interact with
FOXPROWCFG, but it sure sounds like something you might be interested in.

Dan


Steve Freides wrote:
> We are running a commercial VFP 9 application that respects the
> setting of HELP=ON/OFF it finds in our configuration file. We set
>
> foxprowcfg=<file_name>
>
> at login time, primarily for the benefit of users of our custom VFP 6
> applications. Because the commercial app uses a different version of
> VFP than our custom apps, we were wondering if the naming convention
> for a VFP configuration file exists to allow us to specify _two_
> environmental variables and set things differently for each. E.g.,
> back in the day, we would use foxprocfg and foxprowcfg to
> differentiate between the DOS and Windows versions.
>
> Our two VFP versions are, as mentioned above 6 and 9.
>
> Thanks in advance.
>
> -S-



Re: FOXPROCFG environmental variable by Olaf

Olaf
Sat Jan 06 06:23:35 CST 2007

at default, if ALLOWEXTERNALCONFIG is ON,
VFP6 and above (maybe even vfp5) searches a
config.fpw file (at fisrt in the application path directly
besides the exe).
If both apps are in the same directory you can use the
-C switch. The filename does not need to be config.fpw
with -Cpath, can be anything you want, only the content
matters.

Bye Olaf.