ListCount Property (AComboBox)

Returns the number of items in the list of the object.

Syntax

[ lListCount = ] Object.ListCount

The ListCount property syntax has the following parts:

 

Name

Type

Description

Object

AComboBox

AComboBox control

lListCount

Long

A integer specifying the number of items in the AComboBox list.

Comments

The default return value is zero. The number is read-only, at run time only.

Example

The following statement returns the number of items in the list of the AComboBox:

lcb1ListCount = cbl1.ListCount

Applies to

AComboBox

See Also

ItemData, List, ListIndex