Type | Description | |||
Index as Variant | A long expression that indicates the index of the item being retrieved. | |||
Variant | A string expression that indicates the item's caption. |
The following sample displays the items in the control's predefined list:
Private Sub Form_Load() With Editor1 .AddItem 1, "CanLink", 1 .AddItem 2, "CanShare", 2 .AddItem 4, "CanMove", 3 .AddItem 8, "CanRestore", 3 .EditType = CheckList .Value = 1 + 4 ' CanLink + CanMove For i = 0 To .ItemCount - 1 Debug.Print .ItemCaption(i) Next End With End Sub