RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TItemProp.MaxLength Property

Specifies the maximum number of characters that users can enter for the item's value.

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

Use MaxLength to limit the number of characters that can be typed when assigning a value to the item. A value of 0 indicates that there is no application-defined limit on the length.

Note: Setting MaxLength will not truncate the existing value, it merely prevents the user from adding more text after reaching the limit of MaxLength characters.
Note: Even when MaxLength is 0, there may be limitations imposed by the operating system on the number of characters that may be entered.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!