ISComboBox.MaxLength

Description

The maximum number of characters the user can type into the edit portion of the specified combo box.

Syntax

object.MaxLength

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

Return Value

int

Example

Display some information about the specified combo box, including the maximum number of characters the user can type into the edit portion of the combo box.

Dim aComboBox
Dim aComboBoxInfo

Set aComboBox = Form.Controls_("cmbInform")

aComboBoxInfo =_
  "Caption: " & aComboBox.Caption & vbNewLine &_ 
  "ShortName: " & aComboBox.ShortName & vbNewLine &_
  "ComboBox Max Lenght = " & aComboBox.MaxLength
 
Profile.MsgBox(aComboBoxInfo)  
Note: This property has an effect when the style of the combo box is csDropDown. This macro should be executed in any event handler of the form control.

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

Version information

Added in v7.8.0