Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Config.fpw Woes!!
Message
From
12/12/2001 08:47:55
 
 
To
10/12/2001 23:58:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592531
Message ID:
00593196
Views:
21
Hello Eric,

the FoxPro Config file does not process program statements but rather configuration statements. If what you want to do is process some initial program statements then do the following:
Config.FPW
****************************************************
** You can specify "SET" commands in this manner **
****************************************************
talk=off
default=x:\someotherdirectory
safety=off
near=on
_SCREEN.cAPTION=Rockem Sockem FoxPro + CDOW(DATE())+', '+DTOS(DATE())

...
****************************************************
** You can specify "CONFIGURATION" this manner **
****************************************************
mvcount=2048
title=Rockem Sockem FoxPro
resource=x:\somedirecotry\myFoxuser.dbf
progwork=x:\somedirectory\tempdirectory
...
****************************************************
** You can specify "START UP PROGRAM" this manner **
****************************************************
command=x:\somedirectory\someprogram.prg
* OR
_STARTUP=x:\somedirectory\someprogram.prg



When starting VFP or your VFP generated EXE you can specify a particular config file with the following syntax in the windows shortcut:

<pre>

"x:\somedirectory or another\myexecutable.exe" -cX:\somedirectory\MyConfig.CFG
I hope this helps.

Glenn


You can find FoxPro configuration statements in the help file under "Config.FPW" also some helpful information under "Creating a configuration file"

>Hello All,
>
>I am trying to learn to use the config.fpw. However, as usual I can't seem to understand it. I placed the file in the folder where VFP6.0 starts from and placed a simple statement there [set default to c:\image] but when I run my main program I don't think it reads the file. Please give suggestions as to what the problem may be.
>
>Thanks...
Previous
Reply
Map
View

Click here to load this message in the networking platform