RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterDisplayField.MaxLength Property

Specifies the maximum number of characters the user can enter into the display field.

Pascal
property MaxLength: Integer;
C++
__property int MaxLength;

Use MaxLength to limit the number of characters that can be entered into the display field. A value of 0 indicates that there is no application-defined limit on the length.

Note: Setting MaxLength will not truncate the existing text, it merely prevents the user from adding more text after reaching the limit of MaxLength characters.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!