Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / FoxPro / Setup / August 2003

Tip: Looking for answers? Try searching our database.

config.fpw problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Phil Whitney - 19 Aug 2003 06:05 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.