Partager via


FoxCode Object Reference

Provides metadata for use by scripts in the Data field of IntelliSense items in the IntelliSense table.

FoxCode.PropertyName [= eValue]

Parameters

  • PropertyName
    Specifies a FoxCode object property.

  • eValue
    Specifies a value for the property.

    The following table describes the properties and values available.

    PropertyName

    eValue

    Abbrev

    Specifies contents of the Abbrev field.

    Case

    Specifies contents of the Case field.

    Cmd

    Specifies contents of the Cmd field.

    CursorLocChar

    Specifies a special character denoting the location to position the cursor after script runs. (Default character is a tilde (~).)

    Data

    Specifies contents of the Data field.

    DefaultCase

    Specifies default letter casing setting in the IntelliSense table as derived from the Version record, whose Type is set to "V".

    Expanded

    Specifies contents of the Expanded field.

    Filename

    Specifies the name of file being edited.

    FullLine

    Specifies full text from the line currently typed.

    Icon

    Specifies the icon to use with Items array.

    Items

    Specifies an array to use for populating a list box that displays following running a script. Requires ValueType set to "L".

    Items[1,1] – Text to display in list Items[1,2] – Value tip for item

    The only required element is the first element for each row in the Items array. By default, the array is sorted in ascending order so incremental seek operations can be performed. Users can use the ItemSort property to turn this functionality off and use a natural sort order.

    ItemScript

    Specifies the script to use with Items array.

    ItemSort

    Specifies whether to sort Items array (Default is set to .T.)

    Location

    Specifies type of editor to edit:

    0 – Command Window

    1 – Program

    8 – Menu Editor

    10 – Code Editor

    12 – Stored Procedure

    Menuitem

    Specifies the menu item selected if user is running a script with ValueType set to "L". Can be used in a subsequent script.

    ParamNum

    Specifies parameter number of the function for script call made within a function.

    Save

    Specifies contents of the Save field.

    Source

    Specifies contents of the Source field.

    Timestamp

    Specifies contents of the Timestamp field.

    Tip

    Specifies contents of the Tip field.

    Type

    Specifies contents of the Type field.

    UniqueId

    Specifies contents of the UniqueId field.

    User

    Specifies contents of the User field.

    UserTyped

    Specifies the text the user typed. Does not include the activator key or any leading spaces or tabs. To include activator key, leading spaces or tabs, use FullLine property instead.

    ValueTip

    Specifies Quick Info tip to display when ValueType is set to "T".

    ValueType

    Specifies handler for action following script execution:

    L – Displays a drop-down list box populated from the Items array.

    V – Displays a list of values.

    T – Displays a Quick Info Tip window from ValueTip.

Remarks

The Data field of records in the IntelliSense table, specified by the _FOXCODE system variable, generally contains script code. For more information, see IntelliSense Table Structure.

The FoxCode object reference is typically stored in a variable called oFoxcode in IntelliSense scripts. For more information, see How to: Create IntelliSense Scripts.

See Also

Reference

_FOXCODE System Variable

Other Resources

Objects, Collections, and Classes