Compartir a través de


EditorOptions Property

Specifies the Visual FoxPro Editor options to set. There are two versions of the syntax.

ApplicationObject.EditorOptions [= cOptionString]

_VFP.EditorOptions [= cOptionString]

Return Value

  • cOptionString
    Specifies a character string consisting of one or more letters that represent options to enable or disable.

    The following table describes valid values for cOptionString.

    Editor option

    cOptionString

    Default

    Run time

    List Members (Manual)

    l

    Off

    Yes1

    Quick Info (Manual)

    q

    Off

    Yes1

    List Members (Automatic)

    L

    On

    Yes1

    Quick Info (Automatic)

    Q

    On

    Yes1

    Enable Hyperlinks (CTRL + Click to follow the link)

    K

    On

    Yes

    Enable Hyperlinks (Click to follow the link)

    k

    Off

    Yes

    DragDrop Between Words

    W

    Off

    No

    Designer Value Tips

    T

    On

    No

    Suppress RTF Clipboard Format

    X

    Off

    Yes

    1 Only available at run time through the oFoxCode object in a FoxCode script.

    Note

    You cannot use the uppercase and lowercase settings of the same letter together in the same cOptionString.

    Tip

    You can disable all IntelliSense functionality by setting EditorOptions to the empty string (""). The default settings are "LQKT".

Remarks

Applies To: Application Object | _VFP System Variable

Designer Value Tips ("T") are information tips associated with items in lists and drop-down controls. These include the following:

  • Fields in data source lists (tables and views) in Database, View, and Form (Data Environment) designers.

  • Methods and events in Form and Class Designer method editor procedure drop-down controls.

In Visual FoxPro 9.0, _VFP editor options you specify with the EditorOptions property are persisted between Visual FoxPro sessions.

The Suppress RTF Clipboard option ("X") suppresses copying of color syntax code as rich text (RTF format) when copying from a Visual FoxPro editor and pasting into another editor such as Microsoft Word. With this option set, text is only copied to the clipboard as plain text without any rich formatting.

Example

By default, IntelliSense in Visual FoxPro is set to Automatic. To set IntelliSense to Manual, making it available through keyboard shortcuts or menus, use the lowercase settings instead of uppercase. For example:

_VFP.EditorOptions = "lq"    && Sets IntelliSense to Manual.
_VFP.EditorOptions = "LQ"    && Sets IntelliSense to Automatic.

For more information, see How to: Set IntelliSense Options and Visual FoxPro IntelliSense Manager Window.

See Also

Tasks

How to: Set Editor Options

Reference

EDITSOURCE( ) Function

Other Resources

Properties (Visual FoxPro)

IntelliSense Overview