[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBCtrls' (#lcl)

TDBComboBox.MaxLength

The maximum length for text entered in the edit box for the control.

Declaration

Source position: dbctrls.pp line 823

published property TDBComboBox.MaxLength : Integer
  default - 1;

Description

MaxLength is an Integer property which contains the maximum length for a value entered in the Text for the control. It controls the number of characters allowed in the edit box, but does not limit the length of the value that can be directly assigned to Text. MaxLength is passed to and read from the widgetset class when a handle has been assigned for the control.

The default value for the property is -1 in TDBComboBox, and forces the widgetset class to update its value for the property. Setting the value for the property does not alter the existing value in Text.

See also

TCustomComboBox.MaxLength

  

The maximum length for text entered in the edit box for the control.


Version 4.0 Generated 2025-05-03 Home