List Property (AComboBox)

Returns or sets the text of a specific item in the list of items of the object.

Syntax

Object.List ( IIndex ) [ = sItemText ]

The List property syntax has the following parts:

 

Name

Type

Description

Object

AComboBox

AComboBox control

lIndex

Long

An integer specifying the zero-based index of the item.

sItemText

BString

The text of a specific item.

Comments

The default value of the List item is NULL (an empty list).

Example

The following statement changes the AComboBox List array's 8th item to be the text string "Blue":

cb1.List(7)="Blue"

Applies to

AComboBox

See Also

ItemData, ListCount, ListIndex