RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.GetMaxChars Method

Returns the length of the EditText.

Pascal
function GetMaxChars: Integer;
C++
__fastcall int GetMaxChars();

If there is a mask, GetMaxChars returns the length of the EditText, including all blanks. This is the same as MaxLength, because editing in a masked edit control consists of replacing nonliteral characters. If there is no mask, GetMaxChars returns the length of the text in the window. In this case, the value returned by GetMaxChars may be less than MaxLength, which is the maximum number of characters that can be entered into the edit control. 

 

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