Clear Method (AListBox)

Clears the contents of the object by removing all items.

Syntax

Object.Clear()

The Clear method syntax has the following parts:

 

Name

Type

Description

Object

AListBox

AListBox control

Example

The following example will clear an AListBox control of all its contents:

lb1.Clear()

Applies to

AListBox

See Also

RemoveItem