Microsoft KB Archive/275566

= PRB: Default Settings Change When Restarting Visual FoxPro =

Article ID: 275566

Article Last Modified on 10/31/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q275566



SYMPTOMS
Settings in the Options dialog box of the Tools menu do not hold their values when you restart the Visual FoxPro (VFP) development environment.



CAUSE
The New Project Wizard (Application Wizard) creates a Config.fpw file in the VFP home folder. This configuration file includes code to reset various system variables.



RESOLUTION
To prevent this from happening, build new projects in their own folders, rather than in the VFP default folder. To correct the problem, either move the application's files (including the Config.fpw file) to a separate folder, or edit the configuration file to remove all undesired settings.



MORE INFORMATION
The following configuration file is generated by the Application Builder: * CONFIG.FPW for C:\MYAPP\MYAPP.PJX


 * This file is a generated, framework-enabling component
 * created by APPBUILDER
 * (c) Microsoft Corporation


 * This file should contain the settings
 * appropriate to your project
 * and be added in to the project/exe
 * or installed in the EXE directory


 * It overrides registry settings


 * You can use the -C switch or FOXPROWCFG environmental
 * variables to point to a config file by name, and
 * and the FOXPROSWX variable also handles -C among
 * the other switches.

SCREEN = OFF TITLE = MyApp


 * Change this to suit:
 * TMPFILES = **
 * or set EDITWORK,SORTWORK,PROGWORK individually
 * note: these should never be set in a CONFIG.FPW
 * built into your EXE! See above for ways of pointing
 * to a CONFIG file.

_STARTUP = &quot;&quot;
 * To specify a startup program, possibly temporarily,
 * on the way into your app:

_BROWSER = &quot;&quot; _SPELLCHK = &quot;&quot; _GENMENU = &quot;&quot; _GENGRAPH = &quot;&quot; _GENXTAB = &quot;&quot; _COVERAGE = &quot;&quot; _SCCTEXT = &quot;&quot; _CONVERTER = &quot;&quot; _TRANSPORTER = &quot;&quot; _BUILDER = &quot;&quot; _WIZARD = &quot;&quot;
 * to eliminate load time:

MVCOUNT = 1025 OUTSHOW = ON
 * other special CONFIG.FPW settings you may wish to change:
 * (these are the defaults)

RESOURCE = OFF _THROTTLE = 0
 * Set other global settings here if you like, for example:

TALK = OFF MULTILOCKS = ON EXCLUSIVE = OFF SAFETY = OFF
 * See the application object's SetDataSessionSets method
 * for some additional settings you
 * may like to use in your config file.
 * The following are not the default settings,
 * (and ordinarily will be taken care of in the
 * Load of private-session forms and formsets):

