ListCount Property

Returns the number of items in the control's list array. Not available at design time, Read-only at run-time..

object.ListCount = [integer]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and integer is the number of items in the array.

Use

The ListCount property can be used to determine the number of items in the list array. The list array is an array of items that will be displayed in the drop down list of a ComboBox or ListBox control.

This property can be useful for determining how many items are currently in the list when adding items dynamically.

See Also

ItemData property | List property (ComboBox) | List property (ListBox) | ListIndex property | NewIndex property | TopIndex property | AddItem method

Applies To

Combo box control

List box control


© 2004-2021 looksoftware. All rights reserved.