Partilhar via


IntelliSense Support in Visual FoxPro

IntelliSense List Members is supported for _VFP and _Screen system variables, instantiated objects, visual objects, Microsoft ActiveX controls, COM servers, native Visual FoxPro classes, and user-defined members.

IntelliSense Quick Info is supported for object methods and events.

IntelliSense List Values is supported and can be displayed for property assignments that have a fixed set of values.

Note   Certain native commands and functions (for example, SET) also display an IntelliSense-like list. These are defined in FoxCode.dbf.

You can access IntelliSense functionality automatically for containers and controls in Visual FoxPro visual designers such as the Form designer. To use IntelliSense functionality for class references, ActiveX Controls, and COM Servers in programs, you must declare these objects as strongly typed before you reference them. For more information, see Strong Typing in Class, Objects, and Variable code.

IntelliSense is supported in the Visual FoxPro Editor for programs, in other code editor windows for methods, and in the Command window according to the following scheme:

Visual FoxPro feature Visual FoxPro Editor Code editor window Command window
_SCREEN A A A
_VFP/Application A A A
Instantiated Objects     A
Visual Objects S A  
Class References S S  
ActiveX Controls S A  
COM Servers S S  
THIS, THISFORM, THISFORMSET S A  
Table and Field Names     A
User-Defined A A A

A = all appropriate members      S = only strongly typed members

IntelliSense Default Settings

When Visual FoxPro starts, List Values, List Members, and Quick Info are enabled. You can disable or enable default IntelliSense functionality in the IntelliSense Manager option of the Tools menu. Even when Auto IntelliSense is disabled, you can enable IntelliSense functionality by using keyboard shortcuts (CTRL+I for Quick Info and CTRL +J for List Members and List Values).

In addition, you can enable or disable IntelliSense functionality programmatically by setting the _VFP.EditorOptions property value. For more information, see EditorOptions Property.

You can add or modify some Visual FoxPro IntelliSense functionality by adding or modifying records in FoxCode.dbf or by making selections in the IntelliSense Manager.

See Also

IntelliSense Overview | Auto Table/Field/Variable Names | Auto MRU (Most Recently Used) Files | Using IntelliSense in Visual FoxPro | Customizing IntelliSense Using FoxCode | List Members | Quick Info | List Values | FoxCode Object