Unit 'StdCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]


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


Source position: stdctrls.pp line 865

public property TCustomEdit.MaxLength : Integer
  read FMaxLength
  write SetMaxLength
  default 0;


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.

Remark: MaxLength is not supported for the QT4 widgetset.

CT Web help

CodeTyphon Studio