ISComboBox.Text

Description

The caption of the specified combo box.

Syntax

object.Text

Part Attribute Type Description
object Required
The object always implements the ISComboBox interface

Return Value

string

Example

Display some information about the specified combo box, including its caption.

Dim aControl
Dim aControlInfo

Set aControl = Form.Controls_("cmbInform")

aControlInfo =_
  "Caption: " & aControl.Caption & vbNewLine &_ 
  "Type Name: " & aControl.TypeName & vbNewLine &_
  "Short Name: " & aControl.ShortName & vbNewLine &_ 
  "Text: " & aControl.Text               
  
Profile.MsgBox(aControlInfo) 
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Caption 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 > Caption.

Version information

Added in v7.8.0