ISComboBox.Items

Description

The items of the specified combo box.

Syntax

object.Items

Part Attribute Type Description
object Required
The object always implements the ISComboBox interface
Restriction: This property is readonly.

Return Value

ISItems

Example

Display some information about the specified combo box, including the number and content of its items.

Dim aComboBox
Dim aComboItems
Dim i
Dim aContent
Dim aComboBoxInfo

Set aComboBox = Form.Controls_("cmbInform")
set aComboItems = aComboBox.Items
for i = 0 to aComboItems.Count - 1
  aContent = aContent & vbNewLine & "- " & aComboItems.Strings(i)
next 'i     
aComboBoxInfo =_
  "Caption: " & aComboBox.Caption & vbNewLine &_ 
  "ShortName: " & aComboBox.ShortName & vbNewLine &_
  "ComboBox Items Count = " & aComboItems.Count & vbNewLine &_ 
  "ComboBox Items: " & aContent
 
Profile.MsgBox(aComboBoxInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Items can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the combo box in the controls tree > Items.

Version information

Added in v7.8.0