SelCount Property (AListBox)

Returns the number of selected items.

Syntax

[ lSelCount = ] Object.SelCount

The SelCount property syntax has the following parts:

 

Name

Type

Description

Object

AListBox

AListBox control

lSelCount

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 selected items in the list of the AListBox:

llb1SelCount = lb1.SelCount

Applies to

AListBox

See Also

List, Selected