PRB: Some Intellisense settings do not persist between sessions (310970)



The information in this article applies to:

  • Microsoft Visual FoxPro for Windows 7.0
  • Microsoft Visual FoxPro 8.0

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() + "config.fpw"
				
Add the following line, modifying as appropriate:
COMMAND=_VFP.EditorOptions = "lqkT"
				
See the "EditorOptions" 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.

MORE INFORMATION

Steps to reproduce the behavior

  1. In the Command window, type the following:

    _VFP.EditorOptions = ""

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

    ? _VFP.EditorOptions

Note that EditorOptions has been restored to the default.

REFERENCES

Visual FoxPro 7.0 Help; search on "EditorOptions"

Modification Type:MinorLast Reviewed:1/25/2005
Keywords:kbCodeSnippet kbprb KB310970