I'm having trouble just starting to use VFP 8.0. I'm an old DOS foxpro programmer and have programmed in numerous database
languages for quite a few years. My problem is this. I have the following config.fpw file:
* CONFIG.FPW for C:\CC\CC.PJX
SCREEN = ON && Turn the screen off while processing file
TITLE = MODIFIED
TALK = OFF && Whether VFP displays command results (APPEND FROM, PACK, REINDEX, DELETE, ETC.)
MULTILOCKS = ON && Whether you can lock multiple records using LOCK( ) or RLOCK( )
EXCLUSIVE = OFF && IF VFP will open table files for exclusive or shared use on a network
SAFETY = OFF && IF VFP will display a dialog box before overwriting an existing file, etc.
STATUS = ON && Displays or removes the character-based status bar
STATUS BAR = ON && Displays or removes the graphical status bar
CENTURY = ON && Whether VFP displays the century portion of date expressions, etc.
RESOURCE = OFF && Look for foxuser.dbf file
_THROTTLE = .5 && Trace line execution speed (0 = no pause)
OUTSHOW = ON && Hides all windows in front of the current output window with pressing SHIFT+CTRL+ALT
_startup = "setupfox.prg"
**********************
When I start VFP from the project, it never executes the _startup variable.
I've also used the command = do setupfox.prg method and no luck. I've verified that this is the execuring config file by changing
the title line, as well as issuing the sys command to tell me which config file is current. I've been able to get the startup
program to execute if I go via the TOOLS - OPTIONS - FILE LOCATIONS method, but I want to know why the config.fpw doesn't work as
every book I have looked at says it should. I also have problems with the file locations settings sticking sometimes.
Thanks in advance for any help you can give.
Phil Whitney
Rick Bean - 19 Aug 2003 13:47 GMT
Phil,
Can you explain what you mean by "When I start VFP from the project..."?
The VFP development environment will look for a CONFIG.FPW in a very specific order. 1) If it's specified on the shortcut's commandline with a -c option. 2) Then it checks for a DOS environment variable FOXPROWCFG. If this exists, the file it points to is used. 3) Then it will then search the current directory 4) Finally it'll search the DOS path for a file named Config.FPW.
The important thing is that the CONFIG file is not project based, it's VFP based.
Rick
> I'm having trouble just starting to use VFP 8.0. I'm an old DOS foxpro programmer and have programmed in numerous database
> languages for quite a few years. My problem is this. I have the following config.fpw file:
[quoted text clipped - 27 lines]
>
> Phil Whitney