ListCount Property (AListBox)

Returns the number of items in the listbox.

Syntax

[ lListCount = ] Object.ListCount

The ListCount property syntax has the following parts:

 

Name

Type

Description

Object

AListBox

AListBox control

lListCount

Long

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

Comments

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

Example

The following statement shows how to obtain the number of items in the list of the AListBox:

llb1ListCount = lb1.ListCount

Applies to

AListBox

See Also

ItemData, List, ListIndex