The index of the selected item of the specified combo box.
object.ItemIndex
| Part | Attribute | Type | Description |
|---|---|---|---|
object |
Required | The object always implements the
ISComboBox interface |
int
Display some information about the specified combo box, including the index of the selected item.
Dim aComboBox
Dim aMessage
Set aComboBox = Form.Controls_("cmbInform")
if aComboBox.ItemIndex < 0 then
aMessage = vbNewLine & "No item is selected"
else
aMessage = aMessage &_
"Caption: " & aComboBox.Caption & vbNewLine &_
"Type Name: " & aComboBox.TypeName & vbNewLine &_
"Item Index: " & aComboBox.ItemIndex & vbNewLine &_
"Selected Item: " & aComboBox.Items.Strings(aComboBox.ItemIndex)
end if
Profile.MsgBox(aMessage) In Profile Client v8 on User Interface Item Index can be found in .