Sign in Join
FPDoc Onlineexperiment

TCustomEdit.MaxLength property

Member of TCustomEditpublicIn unit StdCtrls

The maximum length of the value entered in Text, or 0 (zero) for unlimited length.

Declaration

pascal
property MaxLength: Integer read FMaxLength write SetMaxLength default 0;

Description

In Delphi MaxLength only limits user input. The LCL actually restricts the maximum length of the stored text; this simplifies the implementation for non-Win32 widgetsets.

MaxLength is not supported for the QT4 widgetset.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.