Microsoft KB Archive/310970

= PRB: Some Intellisense settings do not persist between sessions =

Article ID: 310970

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Visual FoxPro 7.0 Professional Edition
 * Microsoft Visual FoxPro 8.0 Professional Edition

-



This article was previously published under Q310970



SYMPTOMS
When you set the _VFP.EditorOptions property, either in code or through the Intellisense Manager, and then quit Visual FoxPro 7.0 or Visual FoxPro 8.0, the value is not saved when you start Visual FoxPro again.



RESOLUTION
Use a configuration file (usually Config.fpw) to persist the setting. MODIFY FILE HOME + &quot;config.fpw&quot; Add the following line, modifying as appropriate: COMMAND=_VFP.EditorOptions = &quot;lqkT&quot; See the &quot;EditorOptions&quot; Help topic for the options you can set here.

You can only have one COMMAND line in your Config.fpw file. If you need more than one, create a .prg file in the home directory and call that in the COMMAND line instead. COMMAND=DO vfpStart.prg In Visual FoxPro 9.0, the persistence of the _VFP.EditorOptions settings is supported by saving them to the Visual FoxPro resource file, Foxuser.dbf, between sessions of Visual FoxPro. Therefore, using a Config.fpw file to save this setting is unnecessary.



STATUS
This behavior is by design.



Steps to reproduce the behavior
 In the Command window, type the following:

_VFP.EditorOptions = &quot;&quot;

 Quit and then restart Visual FoxPro 7.0 or Visual FoxPro 8.0. In the Command window, type the following:

? _VFP.EditorOptions



Note that EditorOptions has been restored to the default.

