Condividi tramite


TopIndex Property

Specifies the item that appears in the top-most position in a list.

Control.TopIndex[ = nIndex]

Return Value

  • nIndex
    Specifies the index of the item that appears in the top-most position in a list.

Remarks

Applies To: ComboBox | ListBox

The index of an item reflects its position in the list, which is relative to other items in the list and can change.

Combo box controls are read-only all the time and list box controls are read-only at design time and read/write at run time.

See Also

Reference

AddItem Method (Visual FoxPro)

Clear Method

List Property

ListCount Property

MultiSelect Property (Visual FoxPro)

NewItemID Property

RemoveItem Method

Selected Property

TopItemID Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)