Vcl.DBCtrls.TDBEdit.MaxLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxLength: Integer read GetMaxLength write SetMaxLength default 0;

C++

__property MaxLength = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBEdit

Description

Specifies the maximum number of characters that can appear in the edit control.

Vcl.DBCtrls.TDBEdit.MaxLength inherits from Vcl.Mask.TCustomMaskEdit.MaxLength. All content below this line refers to Vcl.Mask.TCustomMaskEdit.MaxLength.

Specifies the maximum number of characters that can appear in the edit control.

MaxLength is the length of the EditText. Set MaxLength to limit the number of characters that can appear in the edit control when there is no EditMask. If there is an EditMask, MaxLength is implied by the mask itself, and cannot be changed. The EditText contains blank characters for each character that has not been entered, padding the end or beginning of every optional section, so it remains constant in length.

See Also